Fake Address Generator
Generate plausible addresses in the format each country actually uses.
Generate Java POJOs or records with Jackson annotations from JSON.
Annotations come from Jackson — add jackson-databind to your build,
or delete them if your keys already match the field names.
The JSON to Java Class converter generates POJOs with Jackson annotations, private fields and full accessors — or modern Java records, which collapse the same model into a single declaration.
Paste a payload and get the Java model: private fields with Jackson's JsonProperty annotation preserving the original key, a getter and setter for each, List<T> for arrays and a class for every nested object.
If you are on Java 17 or later there is a record mode, which collapses the whole class to a single declaration with the components annotated inline — far less code for a type that only carries data. Either way the primitives are boxed where a field can be absent, because a primitive long cannot represent a missing value and would deserialise as zero instead.
Traditional POJOs work on every Java version; records need 17 and give you equals, hashCode and toString for free.
JsonProperty preserves the original key, so camelCase Java fields bind to snake_case JSON without configuration.
Long rather than long wherever a key can be absent, because a primitive would become 0 and hide the difference.
Every field gets a getter and setter in class mode, which is what Jackson and most frameworks bind against.
Each nested object becomes its own type, named from the key that holds it, ready to split into files.
An array of records gives better optional-field detection.
Classes work everywhere; records need Java 17 and are far shorter.
Nested types are named from their keys.
Paste into a .java file, one public type per file.
For the annotations, yes — add com.fasterxml.jackson.core:jackson-databind. Spring Boot already includes it. Remove the annotations if your keys already match the field names exactly.
When the type only carries data and you are on Java 17 or later. Records give you equals, hashCode and toString for free and cannot be accidentally mutated.
The boxed type can be null, which is how an absent JSON key is represented. A primitive long would become 0, hiding the difference between missing and zero.
Yes for public types — Java requires the file name to match the public type. Alternatively nest the generated types as static inner classes of the root one.
What people who use the JSON to Java Class think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the JSON to Java Class. It takes half a minute and no account.
Write the first reviewGenerate plausible addresses in the format each country actually uses.
Rebuild nested JSON from flat dot-notation or bracket-notation keys.
See an IP address in binary, hex and decimal, octet by octet.
Build and sign a JWT with HS256, HS384 or HS512 for testing.
Press any key and see event.key, event.code and the modifier state.
Generate realistic test rows in JSON, CSV or SQL from fields you choose.
Measure text in UTF-8 bytes, code points, UTF-16 units and graphemes.
Fill in the fields and get a complete README.md in Markdown.