# rxi/sj.h

A tiny little JSON parsing library

Repository: https://github.com/rxi/sj.h
Canonical: https://ross.abutalabs.com/products/sjh
Language: C
License: Unlicense
License Family: permissive
Last push: 2025-09-21T18:29:44+00:00

## Health v2 (maintenance only)
Score: 36/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 43, release rhythm 35, longevity 24
- inputs: {"age_days": 348, "days_push": 346, "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 1545, forks 45 (observed 2026-08-28T04:05:01.499225+00:00)

## What it is
sj.h is a tiny ~150-line C99 JSON parsing library distributed as a single header. It performs zero-allocation, streaming-style parsing and leaves number and string decoding to the user.

## Use cases
- parse  in c with no dependencies
- embed a minimal  parser in an embedded project
- read  config files without dynamic allocation
- extract fields from  strings in c99
- handle  parsing errors with line and column info

## When to choose
- you need a tiny, dependency-free JSON parser in C
- you want full control over number and string decoding
- you cannot use dynamic memory allocation
- you want a public-domain licensed parser

## When to avoid
- you need automatic number parsing or unicode surrogate handling
- you need JSON serialization/writing, not just parsing
- you want a full-featured JSON library with DOM building

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, developer-tools
- domain: parsers, developer-tools, files
- platform: c, cross-platform, embedded
- tags: single-header, zero-allocation, -parser, public-domain, minimalist

## Member repositories
- rxi/sj.h (main) score 36

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.499225+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-30T04:30:36.423579+00:00, confidence not recorded.
  - readme: https://github.com/rxi/sj.h (fetched 2026-08-28T04:05:01.499225+00:00, sha d368dff368d5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
