JSON → Java DTO
Java classes or records from API samples (Lombok optional)
JSON (sample API response)
Java
Types are inferred from a single sample. Keys become camelCase fields, linked with @JsonProperty when the name differs. Null-only values and mixed arrays become Object, and date-like strings are flagged in comments — adjust them to match your real types.
How to use JSON → Java DTO
- Paste a JSON sample to generate Java DTO class or record code.
- With Lombok, annotations replace getters and setters for shorter code.
- Nested objects become inner classes, and arrays become Lists.