Getting Started with JSON Files

In the last chapter, you configured the Map screen to display a list of restaurants using data from a .plist file. You configured custom annotations for each restaurant location and callout buttons in the custom annotations to display restaurant details when tapped. You also cleaned up and organized your code to make it easier to read and maintain.

In this chapter, you will use data in JavaScript Object Notation (JSON) format. Many apps get data from an online source using an Application Programming Interface (API) and JSON is a popular format for data hosted online.

You'll start by learning about APIs and the JSON format, and you'll create a data manager class that can load data from JSON files for use in ...

Get iOS 13 Programming for Beginners - Fourth Edition 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.