JSON to Code Classes
Paste a JSON sample and generate typed model classes: TypeScript interfaces, Java POJO / Lombok, Go structs with json tags, C# classes, Python dataclasses, PHP 8 classes, Kotlin data classes, Swift Codable, Dart models, Rust serde structs and JSON Schema.
JSON Input
- All objects in an array are merged: a field missing from some items becomes optional, and a field that is sometimes null becomes nullable.
- Integers and decimals are distinguished, nested objects become separate classes, and identical structures share one class.
- Field names are converted to each language convention, with annotations such as @JsonProperty, json tags or CodingKeys that keep the original JSON key.
Try other tools
All
Have an issue or feature request for this tool?
Feedback & Suggestions