Developer · DEV-05Submit an issue

JSON to Java class

Infer JSON field types and generate a Java data class.

Java classes · Field type inference
Input
Output
Usage guide and examples

Convert formats and organize data

Enter a JSON object to generate field declarations for a Java Root class. Integers use long, arrays infer List from the first item and nested objects use Map. Add accessors and serialization settings to suit your project.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

{"name":"Ada","age":18}

What to check in the result

String name;
long age;