JSON to Java class generator

Target
01

Source

VALID JSON
Local processing. Your JSON stays in this browser.
370 B
02

Model

4 MODELS
6 fields
SourceTarget
TypeEvidence
id
email_address
email
created_at
datetime
profile
tags
projects
4 fields
SourceTarget
TypeEvidence
display_name
active
phone
address
2 fields
SourceTarget
TypeEvidence
city
country
2 fields
SourceTarget
TypeEvidence
name
active
4 diagnosticsThe property name was normalized for the target. "email_address" → "emailAddress"
  • infoThe property name was normalized for the target. "email_address" → "emailAddress"PROPERTY_NAME_NORMALIZED
  • infoThe property name was normalized for the target. "created_at" → "createdAt"PROPERTY_NAME_NORMALIZED
  • infoThe property name was normalized for the target. "display_name" → "displayName"PROPERTY_NAME_NORMALIZED
  • warningOnly null was observed, so a concrete type cannot be inferred. "phone"NULL_ONLY_UNKNOWN_TYPE
03

Output

Awaiting generationInspect the model, choose a target, then commit the route.
JSONIRCODE
Hover a field to inspect its route

Java models with explicit type policies

ModelForge uses boxed Java types for API-shaped data, stable imports, and configurable constructors and accessors. Collections and java.time mappings are generated only from visible IR evidence and options.

Common questions

Why are numeric types boxed?

JSON samples often contain nullable or incomplete evidence, so boxed types are the safer model default.

Can it generate Lombok?

Yes. Getter, setter, builder, and constructor annotations are configurable.