Learn how to parse JSON data in Swift using the Codable protocol and JSONDecoder class. Understand the steps involved in decoding nested JSON objects and handling optional keys and null values. Build a SwiftUI app that downloads and parses JSON data from a REST API.

14m read timeFrom matteomanferdini.com
Post cover image
Table of contents
Architecting SwiftUI apps with MVC and MVVMTable of contentsHow to parse JSON data in SwiftCreating decodable types that match the structure of your JSON dataDecoding JSON data using a JSONDecoder instanceDecoding nested JSON objects using nested Swift typesDecoding JSON objects with optional keys and null valuesAdvanced techniques to parse complex JSON dataArchitecting SwiftUI apps with MVC and MVVMUsing coding keys to select and rename the members of a JSON objectDecoding the various date formats of JSON dataFlattening nested JSON objectsProcessing the content of JSON arraysBuilding a SwiftUI app that downloads and parses JSON dataArchitecting SwiftUI apps with MVC and MVVMFetching sample model data from a REST APISaving preview data in the app’s main bundleCreating basic SwiftUI views that consume JSON dataFetching the app’s data from the resource URLs of a REST APIArchitecting SwiftUI apps with MVC and MVVM

Sort: