August 13, 2018
Easy JSON Parsing: 5 Steps to Generate Data Models with Xcode Playgrounds and Codable
Dealing with JSON is one of those tasks that almost every developer has to perform in order to construct data models with which to populate project views. However, building and testing a good data model can be time-consuming and prone to mistakes. JSON Parsing in Swift Before Codable Prior to Swift 4, Swift's Foundation library provided native JSON parsing by way of the JSONSerialization API. Simply put, JSONSerialization would convert an API payload into a collection of dictionaries with nested arrays. However,...
Read Post