System.Text.Json
System.Text.Json Model Generator
Convert JSON to C# classes with JsonPropertyName attributes for System.Text.Json serialization.
JSON Input
JSONC# Output
Ready
Serialization Attributes
Generate System.Text.Json JsonPropertyName or Newtonsoft.Json JsonProperty attributes.
Nested Classes
Nested objects and arrays of objects are converted into separate C# classes.
Type Inference
Detects string, bool, numeric types, DateTime, Guid, arrays and nullable values.
JSON to System.Text.Json Model
This page is designed for developers who need an online System.Text.Json model generator tool with clean C# output, nullable reference types, nested classes and JSON serialization attributes.
- Generate JsonPropertyName attributes.
- Keep original JSON property names.
- Create clean System.Text.Json-ready models.