JSON to C#
Infer C# properties and nested classes with System.Text.Json property mapping from sample data.
Ready.
How to use this tool
Generate C# classes from sample JSON. Enter your data above, choose the action, and review the result before using it elsewhere.
Generated types are inferred from the examples supplied, so review optional fields, dates, and mixed arrays.
The output uses JsonPropertyName attributes to preserve original JSON keys.
Common questions
How does JSON to C# work?
Generated types are inferred from the examples supplied, so review optional fields, dates, and mixed arrays.
What should I check before using the result?
The output uses JsonPropertyName attributes to preserve original JSON keys.
Is my input uploaded?
No. This tool processes input in your browser. OctalPilot does not receive the content you paste here.