mholt/json-to-go
Translates JSON into a Go type in your browser instantly (original) observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4607
- days_rel: n/a
- days_push: 763
- n_releases_24m: 0
Adoption not part of the score
4627 stars · 477 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A tool that instantly converts JSON into Go type (struct) definitions, available as a browser-based web tool and a Node.js script. It is a sister tool to curl-to-Go and also has a VS Code extension.
Use cases
- convert a JSON payload into a Go struct
- generate Go type definitions from an API response
- paste JSON and get Go code instantly in the browser
- convert sample. to Go types from the command line
- quickly scaffold Go structs for working with JSON APIs
When to choose
- you are writing Go code that consumes JSON and want to avoid hand-writing structs
- you want an instant, zero-install conversion in the browser
- you need a quick CLI conversion via Node.js from a file or stdin
When to avoid
- you need guaranteed-correct output without review, since the tool makes assumptions about arrays of objects
- you need formatted, gofmt-ready output (you must run go fmt yourself)
- you are converting non-JSON data formats like YAML or XML
Facets
cli-tool · maturity stable
developer-tools developer-tools web-development apis browser cli cross-platform -to-go struct-generator code-converter browser-tool code-generation nodejs
2 sources
- readme: https://github.com/mholt/json-to-go · fetched 2026-08-28 · db80316322cc
- homepage: https://mholt.github.io/json-to-go/ · fetched 2026-08-29 · d83ed7f4f8b5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mholt/json-to-go | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="mholt/json-to-go")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem