1. System.Text.Json & PascalCase Mapping
C# properties follow PascalCase while JSON APIs use camelCase or snake_case. Keeping [JsonPropertyName("...")] attributes guarantees exact serialization without custom naming policies.
THE TOOLBOX / DATA & CODE GENERATION
Paste any nested JSON payload to instantly generate clean, strongly typed C# records or classes (with System.Text.Json attributes), Java records (Jackson), or Kotlin @Serializable data classes directly in your browser.
using System.Collections.Generic;
using System.Text.Json.Serialization;
public record OrderResponse(
[property: JsonPropertyName("orderId")]
string OrderId,
[property: JsonPropertyName("createdAt")]
string CreatedAt,
[property: JsonPropertyName("isPaid")]
bool IsPaid,
[property: JsonPropertyName("totalAmount")]
double TotalAmount,
[property: JsonPropertyName("discountCode")]
object? DiscountCode,
[property: JsonPropertyName("customer")]
Customer Customer,
[property: JsonPropertyName("items")]
List<Item> Items
);
public record Item(
[property: JsonPropertyName("sku")]
string Sku,
[property: JsonPropertyName("quantity")]
int Quantity,
[property: JsonPropertyName("unitPrice")]
double UnitPrice
);
public record Customer(
[property: JsonPropertyName("id")]
int Id,
[property: JsonPropertyName("fullName")]
string FullName,
[property: JsonPropertyName("email")]
string Email
);STRONGLY TYPED DTO GENERATION GUIDE
C# properties follow PascalCase while JSON APIs use camelCase or snake_case. Keeping [JsonPropertyName("...")] attributes guarantees exact serialization without custom naming policies.
Prettify raw payloads in the JSON Formatter, validate schemas in the JSON Schema Validator, or convert tabular data in CSV to SQL Generator.
For .NET 6+ APIs and immutable DTOs, C# records are concise and work seamlessly with System.Text.Json. Choose C# classes with { get; set; } properties if you need mutable entities, Entity Framework tracking, or older .NET Framework compatibility.
Yes. It recursively walks nested JSON objects and arrays to emit strongly typed child classes or records, typed List<T> collections, int/long/double number inference, and nullable types for null fields.
No. Parsing and code generation run 100% locally in your browser—safe for internal API contracts, staging responses, and proprietary schemas.