Working with JSON and Codable in Swift 5

First, what’s JSON? JSON (short for JavaScript Object Notation) is a text-based, lightweight, and easy way for storing and exchanging data. It’s commonly used for representing structural data and data interchange in client-server applications, serving as an alternative to XML. A lot of the web services we use every day have JSON-based APIs. Most of the iOS apps, including Twitter, Facebook, and Flickr send data to their backend web services in JSON format. As an example, here is a JSON representation of a sample Movie object: As you can see, JSON formatted data is more human-readable and easier to parse … Continue reading Working with JSON and Codable in Swift 5