[{"data":1,"prerenderedAt":95},["ShallowReactive",2],{"tool-content-en-json-to-go":3},{"id":4,"title":5,"body":6,"description":85,"extension":86,"locale":87,"meta":88,"navigation":89,"path":90,"seo":91,"stem":92,"toolId":93,"__hash__":94},"tools\u002Ftools\u002Fen\u002Fjson-to-go.md","JSON to Go Struct",{"type":7,"value":8,"toc":78},"minimark",[9,14,46,50,71,75],[10,11,13],"h2",{"id":12},"what-is-this-tool","What is this tool?",[15,16,17,18,22,23,26,27,30,31,34,35,34,38,41,42,45],"p",{},"Generate Go structs from JSON with exported fields, ",[19,20,21],"code",{},"json:\"...\""," tags, and inferred types: ",[19,24,25],{},"int64"," or ",[19,28,29],{},"float64"," for numbers, ",[19,32,33],{},"bool",", ",[19,36,37],{},"string",[19,39,40],{},"any"," for null, nested struct types, and ",[19,43,44],{},"[]T"," for arrays.",[10,47,49],{"id":48},"how-to-use-it","How to use it",[51,52,53,57,64],"ol",{},[54,55,56],"li",{},"Paste JSON.",[54,58,59,60,63],{},"Optionally change the root type name (default ",[19,61,62],{},"Root",").",[54,65,66,67,70],{},"Copy the generated structs or download them as ",[19,68,69],{},"models.go",".",[10,72,74],{"id":73},"privacy","Privacy",[15,76,77],{},"Conversion runs entirely in your browser.",{"title":79,"searchDepth":80,"depth":80,"links":81},"",2,[82,83,84],{"id":12,"depth":80,"text":13},{"id":48,"depth":80,"text":49},{"id":73,"depth":80,"text":74},"Generate Go structs with JSON tags and inferred field types from JSON.","md","en",{},true,"\u002Ftools\u002Fen\u002Fjson-to-go",{"title":5,"description":85},"tools\u002Fen\u002Fjson-to-go","json-to-go","Y06UShLyerC8qNs0kMBm1jITrCqYDa9G_sGib3e3u4Y",1792391418768]