Earlier this year I mentioned the SwiftyJSON library for working with JSON data in Swift.
Here’s an open source Mac tool written in Swift that makes it easy to convert JSON data into code with support for Swift using NSJSONSerialization or SwiftyJSON and Java for Android.
The conversion is automatic, and you can preview all the different classes in nice interface, and include constructors. utility methods, both or none.
As stated in the realm the generated code can include:
– A constructor wich accepts an instance of NSDictionary, JSON, JSONObject instance depending on the file language, and the class will use this object to fill its properties data.
– A utility method which converts the class data into a dictionary again
A screenshot I took showing JSONExport in action with data from the Twitter API writing some SwiftyJSON code:
You can find JSONExport on Github here.
A nice open source tool or working with JSON data.
- An Open Source Library That Makes Working With JSON Data Using Swift Much Easier
- Open Source Swift Library Providing Easy JSON Deserialization Into Classes, Primitives And More
- Tool: A Command Line Documentation Generator For Swift
- Free Tool That Automatically Converts JSON Models To Objective-C Objects And Core Data Models
- Top Resources In iOS Development For Two Weeks Ended July 6th, 2014
Original article: Mac Tool For Generating Code From JSON Data Supporting Swift (NSJSONSerialization And SwiftyJSON)
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





