# tidwall/sjson

Set JSON values very quickly in Go

Repository: https://github.com/tidwall/sjson
Canonical: https://ross.abutalabs.com/products/sjson
Language: Go
License: MIT
License Family: permissive
Topics: json
Last push: 2026-05-19T13:36:07+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 83, release rhythm 35, longevity 100
- inputs: {"age_days": 3606, "days_push": 106, "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 2737, forks 185 (observed 2026-08-28T04:07:16.341412+00:00)

## What it is
SJSON is a fast Go library for setting values in JSON documents using dot-syntax paths. It is the write-side companion to GJSON, which handles fast JSON reads.

## Use cases
- set a nested value in a  document in go
- modify  without unmarshalling into structs
- append items to a  array quickly
- update  payloads in an api handler
- build  documents programmatically with paths
- patch  strings at high throughput

## When to choose
- you need to mutate well-formed JSON in Go with minimal allocations
- you already use GJSON and want matching write capabilities
- performance matters more than full struct-based serialization

## When to avoid
- you need validation of malformed JSON input
- you prefer working with typed Go structs via encoding/
- you need a CLI for JSON editing (use JJ instead)

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: developer-tools, backend, apis
- platform: go, cross-platform
- tags: -manipulation, path-syntax, performance, g-companion

## Member repositories
- tidwall/sjson (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:16.341412+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-30T08:19:14.688703+00:00, confidence not recorded.
  - readme: https://github.com/tidwall/sjson (fetched 2026-08-28T04:07:16.341412+00:00, sha 87c792d8f623)
- Data as of 2026-08-30T08:39:29.467469+00:00.
