JSON input
Paste JSON, optionally name the root type, then generate.
Your C# class code will appear here.
Generate C# classes from JSON with auto implemented properties. Nullable reference types, JsonPropertyName hints, and nested classes included.
Paste JSON, optionally name the root type, then generate.
Your C# class code will appear here.
The output uses auto implemented properties, nullable annotations, and PascalCase names per C# convention. Paste a sample API response and get a class hierarchy that deserializes with a single JsonSerializer.Deserialize call.
Fields that proved unreliable in the sample become nullable, so the compiler's null state analysis helps you handle missing data instead of throwing NullReferenceException at runtime.