What is JSON GEN?

A code generator that parses JSON to create client side source files to model the JSON data structure.
Current we support reading JSON and generate Java class files, but other languages will soon be included.

Why JSON GEN, isn't this like json-simple or flex-json?

No, but we acutally we use both of those libraries. Other JSON libraries parse JSON and populate client code but they don't actually generated the client code for you. This is where JSONGen comes into play, it generates those client stubs because you have better things to do!

UPDATE: My free hosting from google finally ran out which caused this site to go down for a long long while. That said I have new hosting and rewrote the converstion to be client side javascrip. Also I updated to allow you to copy and paste your json verse using a link (something that was highly requested).

What was the motivation behind this?

JSONGen was written by someone who was sick of getting .json feeds with no client code thus having to manually create client stubs. The client stubs don't too long to create but this particular person had better things to do (like write a library to handle it) and thus JSONGen was born.

OK I want to use it already! What do I do? how do i try it?

It is easy since you'll use this page to generate your code. Just put in a valid JSON in the text box below and click 'generate'. Your java classes will be shown in the text area below

The form is currently populated with some sample data, replace the sample data with your information or just click generate to run the sample.


Class Name:

GENERATED JAVA (Copy and paste to your favorite IDE or Text Editor)

Wow that saved me time, how can I thank you?

Donations are always welcome!

US Dollar: $

Terms of Use

You have the right to use the code generated by this page in any code base including free, commerical, and educational however you must use the code at your own risk. The code is provided with no warranty and you can make no claims of loss because of its use.