# JSON Shallow Merge Utility

> JSON Shallow Merge Utility is a paid API for AI agents from creator-desk-x402-isolated.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Performs a shallow merge of two or more JSON objects, combining their top-level keys without deep recursion

## Facts

- Endpoint: POST https://creator-desk-x402-isolated.onrender.com/v1/utility/json-merge-shallow?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-shallow-merge-utility-6d4cd8eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4XXY_r7QhYtqe1HJMVdeW

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 json-shallow-merge-utility-6d4cd8eb -d '<json body>'
```

Example prompt: Shallow-merge these two JSON objects for me — take {"theme": "dark", "fontSize": 14} and merge in {"fontSize": 16, "language": "en"} so the second object's top-level keys overwrite the first's.

## When to prefer this

Choose this endpoint when you need a fast, paid-per-call shallow merge of JSON objects and want a reliable utility microservice rather than implementing merge logic yourself. Ideal for agent workflows that need to combine configuration objects, override defaults, or union API responses at the top level only — without the complexity of deep recursive merging. Best when operating in an x402-enabled payment context where per-call micropayments are acceptable.

## Known failure modes

- Invalid or malformed JSON input causes a parse error response
- Missing required 'value' field returns a validation error
- Passing a non-object type (e.g. array or primitive) may result in unexpected merge behavior or an error
- Network timeout on the Render-hosted service if cold-starting
- Payment failure via x402 protocol blocks the request before processing

## How this service works

Machine-callable x402-paid utilities for autonomous agents.

## Output

Returns a JSON object containing the result of the shallow merge operation, with top-level keys from the input objects combined — later keys overwrite earlier ones. Also includes an 'operation' field confirming 'json_merge_shallow' was applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {},
  "options": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "example",
  "operation": "json_merge_shallow"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-shallow-merge-utility-6d4cd8eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from creator-desk-x402-isolated.onrender.com](https://www.zero.xyz/host/creator-desk-x402-isolated.onrender.com/llms.txt)
