对象转 C# 模型
输入
{"id":1,"name":"demo","enabled":true}
输出
public class Root
{
public long Id { get; set; }
public string Name { get; set; }
public bool Enabled { get; set; }
}
根据 JSON 数据在浏览器中生成 C# 模型类。
根据 JSON 数据生成 C# 模型类,支持嵌套对象、数组和 System.Text.Json 字段映射。
{"id":1,"name":"demo","enabled":true}
public class Root
{
public long Id { get; set; }
public string Name { get; set; }
public bool Enabled { get; set; }
}
转换完全在浏览器本地完成,不上传 JSON。