# jsoniter

A high-performance 100% compatible drop-in replacement of "encoding/json"

Repository: https://github.com/json-iterator/go
Canonical: https://ross.abutalabs.com/products/jsoniter
Homepage: http://jsoniter.com/migrate-from-go-std.html
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, parser, json-parser, json, serialization, serializer, deserialization
Archived: true
Last push: 2024-05-27T09:03:49+00:00
Link (homepage): http://jsoniter.com/migrate-from-go-std.html

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

## Adoption (not part of the score)
Stars 13876, forks 1053 (observed 2026-08-28T04:11:04.990179+00:00)

## What it is
jsoniter is a high-performance JSON serialization and parsing library for Go (with a Java variant) that serves as a 100% compatible drop-in replacement for the standard encoding/json package. It requires no code generation and offers significantly faster marshal/unmarshal with lower allocations, plus a lazy 'Get' API for path-based JSON access.

## Use cases
- speed up json.Marshal and json.Unmarshal in Go without changing code
- drop-in replacement for encoding/json with better performance
- parse JSON without defining structs
- extract nested JSON values by path
- reduce memory allocations in JSON encoding
- migrate Go code from standard library JSON to a faster parser

## When to choose
- your Go application is bottlenecked on JSON encoding/decoding
- you want faster JSON without code generation steps like easyjson
- you need near-100% compatibility with encoding/json behavior
- you want lazy path-based access to JSON fields without structs

## When to avoid
- your JSON workloads are small and not performance-critical, where the standard library suffices
- you need guaranteed map key ordering identical to the standard library without using the compatibility config
- you need lossless float precision with the ConfigFastest mode
- you are not using Go or Java

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, parser, json
- domain: developer-tools, backend, apis, performance
- platform: go, cross-platform
- tags: json-parser, drop-in-replacement, encoding-json, high-performance, deserialization

## Member repositories
- json-iterator/go (main) score 10
- json-iterator/java (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:04.990179+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-29T17:12:58.730073+00:00, confidence not recorded.
  - readme: https://github.com/json-iterator/go (fetched 2026-08-28T04:11:04.990179+00:00, sha b0831ef9a843)
  - homepage: http://jsoniter.com/migrate-from-go-std.html (fetched 2026-08-29T08:07:02.856960+00:00, sha ec235696376d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
