JSON to Multi-language Struct
Convert JSON to Go struct / Java POJO / Python dataclass / Rust struct with full type inference (int vs float, null → Optional, recursive nested objects). Backend dev & scraping must-have.
· 本地推断 · 不上传
JSON 输入
Go struct + json tag
// 粘贴 JSON 后查看生成的代码
推断规则
· 数值:整数 → int/long/i64,小数 → float/double/f64
· 数组:合并所有元素类型(int + float 升级为 float,不同类型降级为 any/interface)
· null 值:标记字段为 nullable,Go 用指针+omitempty / Python 用 Optional / Rust 用 Option
· 嵌套对象:按父字段名 PascalCase 命名,递归生成独立类型
· 字段命名:Go/Java 用驼峰,Python/Rust 用蛇形,JSON 原名通过 tag/注解保留
Developer Tools · Related Tools
→ DNS Lookup
A / AAAA / MX / TXT / CNAME / NS all at once
JSON Formatter
Prettify + JSONPath + diff
curl to Code
fetch / axios / Python / Go / PHP / Java / JS
Base64 Codec
Text & image two-way encode/decode
URL Codec
encodeURIComponent / decodeURIComponent
Timestamp Converter
Unix timestamp + 8 timezones + shortcuts