Translates JSON into a Go type definition. Check it out!
This is a sister tool to curl-to-Go, which converts curl commands to Go code.
Things to note:
go fmt!Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.
sh
node json-to-go.js sample.json
sh
node json-to-go.js < sample.json
cat sample.json | node json-to-go.js
JSON-to-Go is brought to you by Matt Holt (mholt6).
The Go Gopher is originally by Renee French. This artwork is an adaptation.
$ claude mcp add json-to-go \
-- python -m otcore.mcp_server <graph>