Back to tools
JSON to C# Class
Generate System.Text.Json C# POCOs from a JSON object
About JSON to C# Class
JSON to C# Class lets you generate system.text.json c# pocos from a json object.
Category: Converters.
Frequently asked questions
What is a POCO?
▾
A Plain Old CLR Object (POCO) is a simple C# class with auto-properties and no framework dependencies — the C# equivalent of a Java POJO.
Which serializer are the attributes for?
▾
The [JsonPropertyName] attributes come from System.Text.Json, the built-in .NET serializer available from .NET Core 3.0+. No extra packages needed.
How are nullable types handled?
▾
JSON null values become object? (nullable reference type). Enable <Nullable>enable</Nullable> in your .csproj to enforce nullability checks.
How do I deserialize with System.Text.Json?
▾
Root root = JsonSerializer.Deserialize<Root>(jsonString)! — the [JsonPropertyName] attributes handle camelCase JSON to PascalCase property mapping.