JSON to C# POJO Generator

Generate a starter model from JSON or XML locally.

JSON to C# classes

Each JSON object becomes a C# class with auto-properties and [JsonPropertyName] attributes for System.Text.Json; nested objects get their own classes, arrays become List<T>, whole numbers become long, and missing or null values become nullable types. The output builds without warnings on .NET 8 with nullable reference types enabled. {"id":1,"name":"Ada"} gives public long Id { get; set; } and public string Name { get; set; } = string.Empty;.