Indent
Generation Options
Input JSONJSON
Generated resultC#
Frequently Asked Questions
How do I use JSON → C# Class?
Step 2 — fill in the namespace (for example MyApp.Models ) and the root class name (default RootObject ). Step 3 — choose whether to use auto-property syntax (recommended) and whether to add [JsonProperty] for precise control over serialized names.
What can JSON → C# Class do?
Typical scenarios: ASP.NET Core Web API developers create request / response models from agreed contracts; Unity game projects quickly generate config or protocol classes when talking to a back-end; desktop clients (WPF / WinForms) need…
Is my data private when I use JSON → C# Class?
The JSON you enter is never uploaded, so you can use it safely for entity modelling of internal business APIs. The JSON you enter is never uploaded, so you can use it safely for entity modelling of internal business APIs.
What technical details should I know about JSON → C# Class?
Class names are PascalCased and property names follow C# conventions. To use [JsonProperty] , import using Newtonsoft.Json; or the equivalent System.Text.Json annotation [JsonPropertyName] .