During WWDC 2017, Apple introduced a new way to parse JSON files, which is much simpler than the previous way of doing it. You implemented the old way of parsing JSON files earlier in RestaurantAPIManager. Now, you will see the new way of doing it, and this will be useful when you need to convert older projects. This also shows you that it is relatively easy to change the data manager class without making a lot of changes to the rest of your project.
You will start by modifying RestaurantItem so it conforms to the Decodable protocol:
- In the Project navigator, click