Paste JSON and generate strongly-typed C# POCO classes with proper data annotations.
Paste JSON and generate strongly-typed C# POCO classes with proper data annotations.
A JSON to C# converter reads a JSON payload and generates strongly-typed C# POCO (Plain Old CLR Object) classes that match the data structure. Instead of writing classes by hand for every API response or configuration file, you paste JSON and get production-ready C# code in seconds — complete with proper types, nullable annotations, and optional JsonProperty attributes.
POCO (Plain Old CLR Object) classes are simple C# classes with properties and no framework dependencies. They are the standard way to deserialize JSON in .NET using System.Text.Json or Newtonsoft.Json.
When enabled, value types like int and bool become int? and bool?, indicating the field may be absent in the JSON payload — essential for real-world APIs that omit optional fields.
Adds [JsonProperty("snake_case")] attributes to map C# PascalCase property names to JSON snake_case or camelCase keys. Required when the JSON key names differ from C# naming conventions.
Nested JSON objects generate separate C# classes with correct cross-references. Arrays of objects become List<T> properties. The tool handles any depth of nesting automatically.