SwiftyJSON is a Swift Models (struct or class) generation tool , given JSON to format and generate models , so that it is easy to manage and share between multiple models . The generated model relies on Swift's built-in Codeable feature that makes encoding and decoding objects a thing of the past. The variable properties are automatically determined to be optional based on the JSON object array, and you can also set them to be optional or non-optional. Format JSON with pretty printed Plist source code (XML) is also supported.