A worked example, rendered from real sample data. Sign in to run the tool on your own input.
{"id":1,"firstName":"John","lastName":"Doe","email":"john@example.com","isActive":true}using System.Collections.Generic;
public class Root
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public bool IsActive { get; set; }
}
Generate a C# class with properties + nullables from JSON. Part of the DevTools Surf developer suite. Browse more tools in the Converters collection.