JSON to code generators
Generate TypeScript, Python, Go, Rust, Java, C# and more from a JSON sample — types, classes and validation schemas in one paste.
- JSON to TypeScript — Stop Typing Interfaces Turn a JSON sample into TypeScript interfaces. Nested objects get their own named types, so a payload becomes a file you paste and compile.
- JSON to Python — Pydantic, dataclass or TypedDict Turn a JSON sample into Python classes. Pick the style your project already uses and paste the result straight into models.py.
- JSON to Go — Structs That Drop Into Your File Turn a JSON sample into Go structs with json tags. Columns come out aligned the way gofmt would leave them, so the paste needs no cleanup.
- JSON to Rust — serde Structs Ready to Derive Turn a JSON sample into Rust structs with serde derives. Names become snake_case and the original key rides along, so from_str works first try.
- JSON to Java — Records Jackson Can Decode Turn a JSON sample into Java records. Boxed types and a Jackson annotation wherever a name had to differ, so the payload decodes as written.
- JSON to C# — Records System.Text.Json Reads Turn a JSON sample into C# records or classes. Every renamed property carries a JsonPropertyName attribute, so the deserializer still finds its key.
- JSON to Kotlin — Data Classes You Can Paste Turn a JSON sample into Kotlin data classes. Property names stay as the JSON wrote them, backticked where the language needs it, ready to compile.
- JSON to Swift — Codable With CodingKeys Written Turn a JSON sample into Swift structs conforming to Codable. Keys that cannot be property names come back through CodingKeys, spelled out for you.
- JSON to Dart — fromJson and toJson Written Out Turn a JSON sample into Dart classes. The original keys live in the generated fromJson and toJson, so the mapping is code you can read and step through.
- JSON to PHP — Classes With Promoted Properties Turn a JSON sample into PHP 8 classes with promoted constructor properties. A renamed property keeps the original key in a comment beside it.
- JSON to Scala — Case Classes, Keys Intact Turn a JSON sample into Scala case classes. Field names keep the JSON keys, in backticks where the language needs them, ready for your codec.
- JSON to Zod — Validate at the Boundary Turn a JSON sample into Zod schemas. One schema per object, declared before use, and z.infer gives you the TypeScript type from the same source.
- JSON to JSON Schema — A Contract for CI Turn a JSON sample into a JSON Schema, draft 2020-12. Required keys and additionalProperties are switches, so the contract says what you mean.
- JSON to GraphQL — SDL for Your schema File Turn a JSON sample into GraphQL SDL types. Nested objects become their own types, ready to paste into schema.graphql and query straight away.
- JSON to io-ts — Decode and Get the Type Turn a JSON sample into io-ts codecs. One codec per object, declared before use, and TypeOf hands you the static type from the same declaration.
- JSON to Flow — Type Aliases for Your Project Turn a JSON sample into Flow type aliases. Nested objects get their own names, so a payload becomes types you can import where you need them.
- JSON to PropTypes — A Wrong Prop Says So Turn a JSON sample into PropTypes shapes. One shape per object, required by default, so a prop of the wrong shape shows up in the dev console.
- JSON to JSDoc — Autocomplete in Plain JS Turn a JSON sample into JSDoc typedefs. Each object becomes a named @typedef your editor reads, in plain JavaScript files, with no build step.