首页Home › 开发工具Developer Tools

💠 JSON 转 C# 实体类JSON to C# Class

根据 JSON 自动生成 C# 实体类(属性含 get/set),可选 System.Text.Json 特性标注。Generate C# model classes (with get/set properties) from JSON, optionally with System.Text.Json attributes.

使用说明与常见问题How-to & FAQ

「JSON 转 C# 实体类」是什么?What is the JSON to C# Class tool?

根据 JSON 自动生成 C# 实体类(属性含 get/set),可选 System.Text.Json 特性标注。Generate C# model classes (with get/set properties) from JSON, optionally with System.Text.Json attributes.

如何使用「JSON 转 C# 实体类」?How do I use the JSON to C# Class tool?

在「JSON 转 C# 实体类」中,把内容粘贴或输入到上方输入框,按需设置「类名」,结果会实时显示在下方,点击「复制结果」即可复制。In the JSON to C# Class: Paste or type into the input box, adjust "Root class"; the result appears below instantly — click "Copy result" to copy it.

数字类型怎么推断?How are number types inferred?

整数在 int 范围内用 int,超出用 long,含小数用 double;null 用 object。可按需在生成代码中手动调整。Integers within int range use int, larger use long, decimals use double, and null uses object. Adjust in the generated code as needed.

代码或数据会被上传吗?Is my code or data uploaded?

不会。「JSON 转 C# 实体类」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The JSON to C# Class runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.

「JSON 转 C# 实体类」免费吗?需要注册吗?Is the JSON to C# Class free? Do I need an account?

「JSON 转 C# 实体类」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The JSON to C# Class is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

☕ JSON 转 Java 实体类JSON to Java POJO🗃️ SQL 建表语句转 Java 实体类SQL (CREATE TABLE) to Java Entity🌲 JSON 可视化树形查看器JSON Tree Viewer🧭 XPath 在线测试XPath Tester🔁 htaccess 转 Nginx 规则htaccess to Nginx Converter⌨️ 键盘测试工具Keyboard Tester🟨 JS 格式化/压缩JavaScript Beautifier & Minifier🛡️ JS 混淆加密JavaScript Obfuscator📦 JS eval 解包JavaScript Unpacker📊 Excel 转 JSONExcel to JSON📈 JSON 转 ExcelJSON to Excel🧾 JSON 格式化校验JSON Formatter & Validator

← 全部工具All tools