561 Group Market
RFC 6902 JSON Patch Apply
RFC 6902 JSON Patch Apply
Apply all six RFC 6902 operations to supplied JSON, using RFC 6901 string paths. Returns document presence and the new value; removing the root is distinct from null. No remote resource or database writes. Invalid/inapplicable patches are refused before payment. Ordinary finite JSON, valid Unicode; 64 KiB canonical request/result, depth 64, 8192 nodes, 4096 array elements.
Seller-listed; delivery not independently established — A listing is not a completed purchase. The live HTTP 402 challenge supplies current payment terms.
- Price preview
- from $0.0012 USDC
- Method
- POST
- Endpoint
- https://market.561.group/v1/data/json-patch-apply
- Seller
- engineering
- Source-rights state
- not-declared
- Offer NI
- ni:///sha-256;rCqUBagXw7uSdN8fg4Ax4ZEi7SrSUuBhY5NEuxOdPSg
- Claim cell
- ni:///sha-256;Q-_tnE-_Em1yS-sY-Oz9wMsfXDn65nJizzxYlGzFSio
- Operation law
- ni:///sha-256;jwK77Ixa46CEz20iShzYiDugiXt5ERlXkC4Zo3CUVAk
- json-transformation
- json-patch-apply
- data
- ni:///sha-256;rCqUBagXw7uSdN8fg4Ax4ZEi7SrSUuBhY5NEuxOdPSg
- @red-cup-engineering/json-services-section
- engineering
The seller offers this resource under the stated method and contract. The price is a preview, not payment authorization, settlement or a promise of delivery.
Request contract
{
"maxBytes": 1048576,
"bodySchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"value": {},
"patch": {
"type": "array",
"maxItems": 128,
"items": {
"type": "object",
"required": [
"op",
"path"
],
"properties": {
"op": {
"type": "string",
"enum": [
"add",
"remove",
"replace",
"move",
"copy",
"test"
]
},
"path": {
"type": "string",
"description": "RFC 6901 string pointer; empty string addresses the root. URI fragments are not patch paths."
},
"from": {
"type": "string",
"description": "Required by move and copy; RFC 6901 string pointer."
},
"value": {
"description": "Required by add, replace and test; any admitted JSON value."
}
},
"description": "RFC 6902 operation. Undefined operation members are ignored. Conditional value/from requirements are enforced by native admission."
}
}
},
"required": [
"value",
"patch"
]
}
}Seller-declared request example
{
"method": "POST",
"url": "https://market.561.group/v1/data/json-patch-apply",
"headers": {
"accept": "application/json",
"content-type": "application/json"
},
"body": {
"value": {
"count": 1,
"old": true
},
"patch": [
{
"op": "test",
"path": "/count",
"value": 1
},
{
"op": "replace",
"path": "/count",
"value": 2
},
{
"op": "remove",
"path": "/old"
}
]
}
}Unsigned request example (copy and run)
curl --include --request POST --header 'accept: application/json' --header 'content-type: application/json' --data-raw '{"value":{"count":1,"old":true},"patch":[{"op":"test","path":"/count","value":1},{"op":"replace","path":"/count","value":2},{"op":"remove","path":"/old"}]}' --url 'https://market.561.group/v1/data/json-patch-apply'An unsigned request may still reach a service or may be refused before a 402 price quote. It does not authorize or settle a payment. Review the request and approve current terms separately.
Declared output
{
"schema": {
"type": "object",
"required": [
"present"
],
"additionalProperties": false,
"properties": {
"present": {
"type": "boolean",
"description": "false means the document was removed; true means value is present, including a JSON null."
},
"value": {
"description": "Present only when present is true; the complete resulting JSON value."
}
}
},
"example": {
"present": true,
"value": {
"count": 2
}
}
}How to buy with x402
- Review the request before sending it. It may still reach a service. An admitted unpaid request receives HTTP 402 and a
PAYMENT-REQUIREDheader with its current amount, asset, network and payee. - Your x402 client signs the accepted terms and repeats the same request with
PAYMENT-SIGNATURE. - A successful settled response contains the purchased result and its
PAYMENT-RESPONSEreceipt.
Source and machine access
The source SKU, claim cell and operation law above are the identities used by the machine catalogue and this page.
Need a correction or accessible service help? Report this offer problem. Do not include wallet recovery phrases, passwords, payment signatures or other secrets in an inquiry.