{"$schema":"https://toolsly.tools/schemas/tool-manifest-v1.json","generated":"2026-05-20T20:47:38.286Z","discovery":{"catalog":"https://toolsly.tools/tools.json","llmsTxt":"https://toolsly.tools/llms.txt","sitemap":"https://toolsly.tools/sitemap.xml"},"relatedTools":[{"slug":"qr-code-reader","name":"QR Code Reader","url":"https://toolsly.tools/qr-code-reader"},{"slug":"qr-code-generator","name":"QR Code Generator","url":"https://toolsly.tools/qr-code-generator"},{"slug":"file-to-hex","name":"File to Hex Dump","url":"https://toolsly.tools/file-to-hex"},{"slug":"hex-to-file","name":"Hex to Binary File","url":"https://toolsly.tools/hex-to-file"},{"slug":"wifi-qr-code-generator","name":"Wi-Fi QR Code Generator","url":"https://toolsly.tools/wifi-qr-code-generator"},{"slug":"vcard-qr-code-generator","name":"vCard QR Code Generator","url":"https://toolsly.tools/vcard-qr-code-generator"},{"slug":"barcode-generator","name":"Barcode Generator","url":"https://toolsly.tools/barcode-generator"},{"slug":"base64-encode","name":"Base64 Encode","url":"https://toolsly.tools/base64-encode"}],"kind":"utility","slug":"json-to-go-struct","name":"JSON to Go Struct","description":"Generate Go structs with json tags from any JSON payload — nested objects become separate named types.","longDescription":"Paste any JSON object or array and generate matching Go structs. Field names are capitalized to be exported and the original keys are preserved in the `json:` tag. Nested objects are extracted into their own top-level structs, mixed-type or null fields fall back to `interface{}`. Arrays of objects produce a `[]Struct` slice, with element type inferred from the first object. Runs entirely in your browser — free, online, no upload.","category":"text","categoryName":"Text & Encoding","keywords":["json to go","json to go struct","json to golang struct","go struct generator","json to golang","go struct from json","json struct tags","json to go online","json to go free","go struct codegen","infer go types from json","json marshal struct"],"badge":"Generator","url":"https://toolsly.tools/json-to-go-struct","inputs":[{"type":"text","key":"json","label":"JSON","placeholder":"{\"name\": \"Ada\", \"age\": 36, \"tags\": [\"math\"]}","multiline":true,"monospace":true},{"type":"text","key":"rootName","label":"Root struct name","defaultValue":"Root"}],"outputs":[{"key":"code","label":"Go","multiline":true}],"invocation":{"webUi":"https://toolsly.tools/json-to-go-struct","api":null,"notes":"Currently invoked via the web UI at `webUi`. Inputs are form fields; outputs are structured text values. A remote MCP/REST API is planned."}}