Chapter 8. Working with XML and JSON Data

For years, I used Extensible Markup Language (XML) as the format of choice to exchange data between systems. Its simplicity, readability, and ease of use made it an easy choice. The only real drawback with XML, in my opinion, is the large size of XML documents. Mobile devices, such as iOS devices, rely on exchanging data over mobile networks when they are not connected to a Wi-Fi network. These mobile networks are generally slower than a standard Wi-Fi or cabled networks. Most mobile devices also have data plans that limit the amount of data a user can use in a given month. That was when I really started looking at using JavaScript Object Notation (JSON) to exchange data between systems. Now, I almost ...

Get Mastering Swift 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.