Getting data from JSON files

Similar to what you did in previous chapters, you will create a data manager class to load a file, read the data inside, and put it into objects in your app. The difference is that you will be reading a JSON file and not a .plist file. This will simulate reading data from an API, where JSON is a commonly used format. Let's start by learning more about APIs and how they work.

Get iOS 13 Programming for Beginners - Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.