JSON
{"u_id":1}Go
type Obj struct {
UId int `json:"u_id"`
}Developer Tools
Convert JSON into Go structs with json tags, nested types, and slice handling. Useful for drafting backend models from API responses.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
开发工具
等待输入
已复制
JSON
{"u_id":1}Go
type Obj struct {
UId int `json:"u_id"`
}Fixed fields become structs; dynamic keys usually fall back to looser types such as interface{}.
It applies basic numeric heuristics; confirm against real business fields.
Tools
Continue with another translated tool for a nearby task.
JSON to TypeScript Interface
Infer TypeScript interface definitions from JSON in your browser. Nested objects become separate interfaces, with options for the root name, optional fields, readonly, export, and type aliases.
BSON to JSON
Convert MongoDB shell or Compass extended JSON (ObjectId, ISODate, NumberInt, and similar) into plain JSON for formatting, sharing, and downstream tools.