It was not that long ago that most consumer-based applications were self-contained and did not need to exchange data with external services. However, in today's age of smartphones and data-driven applications, it is now rare to develop applications that do not need to exchange data with external services. This makes it essential for application developers to know how to exchange data in standard formats.
These days, API designers tend to favor one of the two formats to exchange data—XML or JSON. There have been a number of other data exchange formats that have been promoted over the years, but XML and JSON are, by far, the current leaders. The primary reason for this is that the openness and interoperability of XML and JSON are unmatched by the other data exchange formats. It would be hard to find a public web API that does not offer XML and/or JSON to exchange data.
Apple has provided simple and efficient APIs to work with both XML and JSON data. While there are a number of third...