# evanphx/json-patch

A Go library to apply RFC6902 patches and create and apply RFC7386 patches

Repository: https://github.com/evanphx/json-patch
Canonical: https://ross.abutalabs.com/products/evanphx-json-patch
Language: Go
License: BSD-3-Clause
License Family: permissive
Last push: 2025-12-15T00:04:29+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 57, release rhythm 18, longevity 100
- inputs: {"age_days": 4649, "days_push": 262, "days_rel": 391, "gap_med": 95.5, "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 1228, forks 197 (observed 2026-08-28T04:04:03.498327+00:00)

## What it is
A Go library for applying RFC 6902 JSON Patch documents and creating/applying RFC 7396 JSON Merge Patch documents. It also supports comparing JSON documents and combining merge patches, with configurable apply options.

## Use cases
- apply rfc6902 json patch to a document in go
- create a json merge patch from two documents
- diff two json documents and generate a patch
- combine multiple merge patches into one
- apply json patch operations with configurable error handling

## When to choose
- you need standards-compliant JSON Patch (RFC 6902) or Merge Patch (RFC 7396) support in Go
- you want a small, focused, well-established library with configurable apply behavior

## When to avoid
- you need JSON Patch support in another language
- you need full JSON transformation or query capabilities beyond patching

## Facets
- artifact type: library
- maturity: stable
- function: serialization, json, developer-tools
- domain: developer-tools, apis, backend
- platform: go, cross-platform
- tags: json-patch, rfc6902, rfc7396, merge-patch, patching

## Member repositories
- evanphx/json-patch (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:03.498327+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-30T06:15:10.959304+00:00, confidence not recorded.
  - readme: https://github.com/evanphx/json-patch (fetched 2026-08-28T04:04:03.498327+00:00, sha 440e6ab2d27c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
