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 lanaguages:
- Java for Android.
- Java for Android - to use with Realm.
- Swift Classes.
- Swift Classes - To use with SwiftyJSON library.
- Swift Classes - To use with Realm.
- Swift - CoreData.
- Swift Sturcutres.
- Objective-C - iOS.
- Objective-C - MAC.
- Objective-C - CoreData.
- Objective-C - To use with Realm.
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 6.1+ on any Mac OS X 10.10 or above.
Support Objective-CDoneSync multible classes with the same name or have the same exact propertiesDoneSupport to parse JSON arrays of objectsDone- Load JSON data from web
- Open .json files with JSONExport
- Supported languages management editor.
- When exporting to subclasses of NSManagedObject some data types can not be exported. For example core data does not have data type for "array of strings"; in turn, if your JSON contains an array of strings, the exported file will not compile without you fixing the type mismatch.
-
Version 0.0.4:
- Sync multible classes with the same name or have the same exact properties.
- Support to parse JSON arrays of objects.
-
Version 0.0.3:
- Added support for Realm with Android.
- Added support to specify parent class for all generated classes.
The application still in its early stages. Please report any issue so I can improve it.
JSONExport is available under MIT license.