Why convert JSON to C#?
Writing C# model classes for every API response by hand is slow and error-prone. Paste a sample JSON document above and get ready-to-use C# records (or classes) in milliseconds, including nested objects and arrays.
How it works
The converter parses your JSON locally and generates one record per object. Integers map to
long, floats to double, arrays to List<T>. Keys that are not valid PascalCase
identifiers get a [JsonPropertyName] attribute so round-tripping with System.Text.Json
keeps working. Use the options above to switch between record and class style and to
rename the root type.