JSON 转 C# 类
一键从 JSON 示例生成强类型 C# 类。
输入
结果
使用方法
Generating C# classes
Paste a representative JSON object and press Convert. Nested objects and arrays become their own classes.
- Paste a JSON sample.
- Press Convert.
- Copy the generated classes into your project.
常见问题
Which naming convention is used?
Properties are generated in PascalCase, the standard convention for C# models.
Are nullable types detected?
Properties that contain null in the sample are generated as nullable types.