$devtoolkit.sh/tools/json-to-csharp-class

JSON to C# Class

Convert JSON to C# classes with auto-implemented properties.

$json input
0 chars1 lines
$c# classes[READY]
0 chars1 lines

Related Tools

FAQ

Are nullable reference types used?
JSON null values generate nullable properties using the `?` suffix, e.g., `public string? Field { get; set; }`. Non-null fields use standard types.
How are nested objects handled?
Nested JSON objects become separate C# classes defined in the same output. The parent class references the child class by its PascalCase name.
Are JSON property attributes added?
The generator produces clean classes without attributes by default. You can manually add `[JsonPropertyName]` or `[JsonProperty]` attributes as needed.

Paste a JSON object and generate C# class definitions with auto-implemented properties (`{ get; set; }`). Field names are PascalCase, types are inferred as string, double, bool, object?, List<T>, and nested objects become separate named classes.

/tools/json-to-csharp-classv1.0.0