[JsonProperty] annotations (Newtonsoft.Json). It suits a wide range of C# environments including .NET Core, ASP.NET, WPF and Unity, and is an efficient helper when integrating with REST APIs or message queues.json to c# poco with newtonsoft jsonproperty
Json to c# poco with newtonsoft jsonproperty. This tool handles this and related scenarios — including generate unity c# model from game config json and json to c# dto with dataannotations validation — entirely in your browser with no signup or file upload.
generate c# class from api json with system.text.json
Generate c# class from api json with system.text.json. Whether you work with API data, config files, or log output, everything is processed locally. Related tasks like json to c# dto with dataannotations validation are also supported.
json to c# record with nullable reference types
Json to c# record with nullable reference types. You can also use this tool for xamarin json response to c# model class and json to c# class with jsonpropertyname attributes. All results appear instantly in the editor — no server round-trip required.
convert json to c# list of objects model
Convert json to c# list of objects model. This is one of many scenarios this tool supports. You can also json to c# class with jsonpropertyname attributes without leaving the page or creating an account.
json to c# class with datetimeoffset type
Json to c# class with datetimeoffset type. All processing happens on your device, ensuring your data stays private. Related capabilities include generate unity c# model from game config json and json to c# dto with dataannotations validation.
Overview
How to Use This Tool
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. Step 4 — the right editor updates the C# code in real time; copy it or download as a .cs file. Nested JSON objects are split into multiple classes automatically and array elements are merged.Common Use Cases
Technical Details
string, integers to int, floats to double, booleans to bool, arrays to List<T>, and mixed-type or null values become object. 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]. Generated code defaults to 4-space indentation and can be switched to 2.