JSON to C# Class
Turn a JSON sample into C# classes.
Generate C# Classes from JSON
Deserializing JSON in .NET starts with a class for every object. This page opens JSON to Types with C# chosen, so the classes and property names are written for you, with the original JSON keys kept in attributes.
Naming
Properties use PascalCase, as .NET style expects, and [JsonPropertyName("order_id")] keeps the link to the JSON key, so no custom naming policy is needed.
Related tools
For a TypeScript frontend on the same API, see JSON to TypeScript.