,

Parsing JSON Just Became Super Easy in Swift 4 with Decodable





Transforming JSON into model objects in your apps just became a whole lot easier with the introduction of Decodable in Swift 4. In today’s lesson, I want to walk through the old way of using JSONSerialization and then show you the new JSONDecoder method. We can retire a bunch of JSON serializer pods now that we have this feature natively supported.

URLs for JSON blobs:
https://api.letsbuildthatapp.com/jsondecodable/course
https://api.letsbuildthatapp.com/jsondecodable/courses
https://api.letsbuildthatapp.com/jsondecodable/website_description
https://api.letsbuildthatapp.com/jsondecodable/courses_missing_fields

Completed Source Code
https://www.letsbuildthatapp.com/course_video?id=1562

Instagram Firebase Course
https://www.letsbuildthatapp.com/course/instagram-firebase

Facebook Group
https://www.facebook.com/groups/1240636442694543/

iOS Basic Training Course
https://www.letsbuildthatapp.com/basic-training

Follow me on Twitter: https://twitter.com/buildthatapp


source

Leave a Reply

Your email address will not be published. Required fields are marked *

Fix Windows Update Error 0x800705b4 in Windows 10

Fix Windows Update Error 0x80070057 in Windows 10 [3 Solutions] 2019