Search code examples
swift4codablejson-api

Converting JSON into Swift objects using Codable


I saw somewhere on StackOverflow there was a website that converted your JSON API into Struct and Codable protocols and for the life of me, I can't find it. I did not bookmark it, unfortunately. Any help would be appreciated in finding this site.


Solution

  • Try Quicktype. this web app allows you to convert JSON in Swift Type or any language such as Go, Dart, Java, C++, RUBY, etc.

    https://app.quicktype.io/