JSON → C#

Convert JSON to C# classes in real-time

Flexible but mutable. Avoid exposing in public APIs.

Locked to camelCase by JsonSerializerOptions.Web.

JSON Input

313 chars

C# Output

using System.Text.Json.Serialization;

public class RootObject
{
    public int Id { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public string Email { get; set; }
    public int Age { get; set; }
    public bool IsActive { get; set; }
    public DateTime CreatedAt { get; set; }
    public List<string> Tags { get; set; }
    public Address Address { get; set; }
}