Skip to content

About the JSON to Java

Generate Java records from a JSON sample. Nested objects, arrays, optional and nullable fields, odd key names and big integers are handled, and the output is the same every time.

How to use it

Examples

Questions

How does it handle keys like first-name or class?
Names are converted to valid identifiers for the language, reserved words get a trailing underscore, duplicates are numbered, and the original key is kept in an attribute or comment.
Is my input uploaded?
No. Everything is calculated in your browser tab and nothing is uploaded or stored.

Free and runs in your browser. Sign in only if you want to save your work.