It was yesterday when I was reading my news feed and I came across this awesome article on serializing Swift
JSON. It’s not just the practicality of it, I also liked the way it’s coded since I ♥️ using protocol extensions for such stuff.
Toying with Swift 3 later that day, I decided to play with the concept in a Swift 3 playground. I’ve got it working quite quickly, but I had found that it lacks support for serializing arrays and dictionaries so I added that and you can find the result in the following gist. You can copy/paste it in a new playground and, if you do so, you can check what Xcode’s Editor > Show Rendered Markup menu option has to offer 🙂