# Penny Army JSON Merge Patch

> Penny Army JSON Merge Patch is a paid API for AI agents from penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Applies an RFC 7396 JSON merge patch to a target JSON object using own-property-safe object construction, without storing or mutating any persisted data.

## Facts

- Endpoint: POST https://penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev/v1/probes/json-merge-patch?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/penny-army-json-merge-patch-0e470271
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lmV9nQrVGpWOIIyxJA_3n

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability penny-army-json-merge-patch-0e470271 -d '<json body>'
```

Example prompt: Apply this RFC 7396 merge patch — {"status": "active", "score": null} — to my target object {"name": "Alice", "status": "pending", "score": 42} and give me the resulting merged JSON.

## When to prefer this

Choose this endpoint when you need a stateless, RFC 7396-compliant JSON merge patch computation without any side effects or stored state changes. It is ideal for previewing the result of a partial update before committing it to a database, or for applying webhook delta payloads to cached objects in memory. Prefer it over a full JSON Patch (RFC 6902) implementation when you want simpler merge semantics with null-means-delete behavior.

## Known failure modes

- Malformed JSON in either target or patch field causes a 400 error
- Non-object top-level values (arrays, primitives) may be rejected or handled unexpectedly
- Missing required fields (target or patch) returns a validation error
- Network timeout or worker unavailability returns a 5xx error
- Payment failure or insufficient balance returns a 402 Payment Required

## How this service works

Apply an RFC 7396 merge patch to supplied JSON with own-property-safe object construction; no stored data is changed.

## Output

The merged JSON object resulting from applying the RFC 7396 patch to the target: keys present in the patch overwrite corresponding keys in the target, keys set to null in the patch are removed from the target, and keys absent from the patch remain unchanged. No data is persisted.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "patch": {
   "$ref": "#/properties/input/properties/body/$defs/__schema0"
  },
  "target": {
   "$ref": "#/properties/input/properties/body/$defs/__schema0"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/penny-army-json-merge-patch-0e470271/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev](https://www.zero.xyz/host/penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev/llms.txt)
