# goccy/go-json

Fast JSON encoder/decoder compatible with encoding/json for Go

Repository: https://github.com/goccy/go-json
Canonical: https://ross.abutalabs.com/products/go-json
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, golang-library, json
Last push: 2026-07-23T23:52:43+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 42, longevity 100
- inputs: {"age_days": 2327, "days_push": 41, "days_rel": 174, "gap_med": 227.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3705, forks 215 (observed 2026-08-28T04:08:15.077971+00:00)

## What it is
goccy/go- is a fast JSON encoder/decoder library for Go that is a drop-in replacement for the standard encoding/ package. It maintains full API compatibility while offering significantly better performance and extra features like context propagation and type-safe field filtering.

## Use cases
- speed up JSON serialization in a Go web service
- replace encoding/ without changing code
- marshal and unmarshal JSON faster in Go
- propagate context.Context through custom JSON marshalers
- dynamically filter struct fields when encoding JSON

## When to choose
- you need encoding/ compatibility with better performance
- JSON encoding/decoding is a bottleneck in your Go application
- you want a drop-in import swap with no code changes

## When to avoid
- you only serialize small JSON payloads where performance is irrelevant
- you need code generation-based serialization like easy
- you require the absolute guarantees of the standard library's battle-tested implementation

## Facets
- artifact type: library
- maturity: active
- function: serialization
- domain: developer-tools, backend, apis
- platform: go, cross-platform
- tags: -encoder, -decoder, drop-in-replacement, performance, encoding--compatible

## Member repositories
- goccy/go-json (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.077971+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:30:59.204956+00:00, confidence not recorded.
  - readme: https://github.com/goccy/go-json (fetched 2026-08-28T04:08:15.077971+00:00, sha 94543d0f39e4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
