Apply a JSON Patch
Apply an RFC 6902 JSON Patch to a JSON document and return the result. An invalid or unresolvable patch (e.g. a failed `test`, or a path that does not exist) is rejected before payment.
- Category
- Data & research
- Starting price
- $0.004
- Paid calls · 30 days
- 15
- Unique payers · 30 days
- 15
Paid endpoints
6 endpoints, sorted by usage. Prices are per request.
- POST/v1/patch
Apply an RFC 6902 JSON Patch to a JSON document and return the result. An invalid or unresolvable patch (e.g. a failed `test`, or a path that does not exist) is rejected before payment.
$0.004Base4calls / 30d - POST/v1/merge
Deep-merge an ordered list of JSON documents, left to right. Objects are merged key-by-key; arrays, scalars and null in a later document replace the earlier value (last-wins, no array concatenation).
$0.004Base4calls / 30d - POST/v1/query
Evaluate a JMESPath expression against a JSON value and return the selected/projected result. A malformed expression is rejected before payment.
$0.004Base2calls / 30d - POST/v1/unflatten
Rebuild a nested object from a single-level object whose keys are delimited paths (default delimiter `.`) — the inverse of flatten. Requires a flat object.
$0.004Base2calls / 30d - POST/v1/flatten
Flatten a nested object/array into a single-level object whose keys are the delimited paths to each leaf (default delimiter `.`). Requires an object or array.
$0.004Base2calls / 30d - POST/v1/diff
Compute the RFC 6902 JSON Patch that transforms `source` into `target`. The patch is a minimal array of add/remove/replace operations.
$0.004Base1calls / 30d