# mholt/json-to-go

Translates JSON into a Go type in your browser instantly (original)

Repository: https://github.com/mholt/json-to-go
Canonical: https://ross.abutalabs.com/products/json-to-go
Homepage: https://mholt.github.io/json-to-go/
Language: JavaScript
License: MIT
License Family: permissive
Topics: go, golang, json, translates-json
Last push: 2024-07-31T15:59:24+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4607, "days_push": 763, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4627, forks 477 (observed 2026-08-28T04:08:55.249242+00:00)

## What it is
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
- artifact type: cli-tool
- maturity: stable
- function: developer-tools
- domain: developer-tools, web-development, apis
- platform: browser, cli, cross-platform
- tags: -to-go, struct-generator, code-converter, browser-tool, code-generation, nodejs

## Member repositories
- mholt/json-to-go (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:55.249242+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:37.466387+00:00, confidence not recorded.
  - readme: https://github.com/mholt/json-to-go (fetched 2026-08-28T04:08:55.249242+00:00, sha db80316322cc)
  - homepage: https://mholt.github.io/json-to-go/ (fetched 2026-08-29T09:04:30.411687+00:00, sha d83ed7f4f8b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
