Parsing JSON with Swift 4 JSONDecoder

Probably you saw many JSON parsing examples, but this one is really easy. And available out of the box with Swift 4.
All you have to do is create models from Codable superclass, and use:

Check out provided playground here!

Output in console should be:

Leave a Reply