Fresh Swift
  • About
  • Tags
Fresh Swift

JSON Parsing in Swift 4

Parsing JSON with Swift 3 and below is a cumbersome task. It either means a lot of boilerplate code to convert JSON to strictly-typed Swift, or using one of the many third-party libraries to do the job for us. This all changes in Swift 4, with the introduction of the Encodable & Decodable protocols. This great article by TrozWare shows us exactly what we need to know to easily parse JSON using Swift 4.

Posted on June 28, 2017

#swift4  #JSON 
  • ← Previous Post
  • Next Post →

 •  2019  •  Fresh Swift

Hugo v0.20.7 powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo