Code Generators
Paste a real API response and get models that compile. Structure is analysed recursively, identical nested shapes are reused, and keywords are escaped so the output is valid rather than nearly valid.
Turn a JSON sample into typed models for thirteen languages, with the annotations and naming conventions each ecosystem expects.
JSON to TypeScriptGenerate TypeScript interfaces, types or classes from a JSON sample.JSONTypeScriptJSON to JavaScriptGenerate JavaScript classes or JSDoc typedefs from JSON data.JSONJavaScriptJSON to PythonGenerate dataclasses, TypedDicts or Pydantic models from JSON.JSONPythonJSON to JavaGenerate Java POJOs or records with Jackson, Gson or Lombok annotations.JSONJavaJSON to C#Generate C# classes or records with System.Text.Json or Newtonsoft attributes.JSONC#JSON to GoGenerate Go structs with json tags, omitempty and pointer options.JSONGoJSON to KotlinGenerate Kotlin data classes with kotlinx.serialization or Gson annotations.JSONKotlinJSON to SwiftGenerate Swift structs conforming to Codable, with CodingKeys where needed.JSONSwiftJSON to RustGenerate Rust structs with serde derives and rename attributes.JSONRustJSON to PHPGenerate typed PHP classes with constructor promotion from JSON.JSONPHPJSON to DartGenerate Dart classes with fromJson and toJson methods for Flutter.JSONDartJSON to C++Generate C++ structs with std::optional and std::vector from JSON.JSONC++JSON to CGenerate C structs and typedefs from JSON, with array length fields.JSONC