首页
Tom Utilities

JSON 转 C# 类

JSON 工具

一键从 JSON 示例生成强类型 C# 类。

输入

结果

使用方法

Generating C# classes

Paste a representative JSON object and press Convert. Nested objects and arrays become their own classes.

  1. Paste a JSON sample.
  2. Press Convert.
  3. 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.