JSONExport is a desktop application for Mac OS X which enables you to export JSON objects as model classes with their associated constructors, utility methods, setters and getters in your favorite language.
JSONExport is a desktop application for Mac OS X written in Swift. Using JSONExport you will be able to: * Convert any valid JSON object to a class of one of the currently supported languages. * Preview the generated content before saving it. * Include constructors only, utility methods only, both or none. * Change the root class name. * Set a class name prefix for the generated classes. * Set package name for Java files.
Each generated file, besid the getters and setters (for Java) 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.
Currently you can convert your JSON object to one of the following languages:
Screenshot shows JSONExport used for a snippet from Twitter timeline JSON and converting it to Swift-CoreData.
Kindly clone the project, and build it using xCode 8 and above.
The application still in its early stage. Please report any issue so I can improve it.
JSONExport is available under custom version of MIT license.