/json2java

Primary LanguageJavaApache License 2.0Apache-2.0

json2java

This project converts a JSON document to its implied Java source code

Look at the Json2JavaTest for examples on how to generate Java classes from a JSON document, and how define custom mappings of names.

Example public projects using Json2Java:

Look at the generator projects in the repositories above to see how to customized output Java code.

TODO:

  • limit line width to 100 characters
  • Use JsonPath expressions for custom mappings