# x402 Agent Toolkit – JSON Transform

> x402 Agent Toolkit – JSON Transform is a paid API for AI agents from x402-agent-toolkit.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Applies a named transformation operation to a JSON string, returning the transformed result for $0.01 USDC per call

## Facts

- Endpoint: POST https://x402-agent-toolkit.vercel.app/api/json-transform?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-toolkit-json-transform-c81c9cf2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZZjYL33juF6r1PeI--C_D

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 x402-agent-toolkit-json-transform-c81c9cf2 -d '<json body>'
```

Example prompt: Transform this JSON string '{"name":"Alice","score":42}' using the 'flatten' operation — pay the $0.01 USDC fee and return the result.

## When to prefer this

Choose this endpoint when you need deterministic, LLM-free JSON transformation as a paid utility — especially in automated agent workflows where you want predictable computation billed per-call in USDC on Base or Solana via x402 protocol.

## Known failure modes

- Missing required field 'data' or 'operation' returns validation error
- Invalid JSON string in 'data' field causes parse failure
- Unknown or unsupported 'operation' value returns error
- Payment not completed or rejected causes 402 Payment Required
- Malformed params object causes operation to fail or return unexpected output

## How this service works

Paid utility endpoints for AI agents. Pay with USDC on Base or Solana. Pure computation, no LLM dependency.

## Output

Returns a JSON object containing the result of the specified transformation operation applied to the input JSON data string. The structure of the response object depends on the operation performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "operation"
 ],
 "properties": {
  "data": {
   "type": "string",
   "description": "Input JSON data"
  },
  "params": {
   "type": "object"
  },
  "operation": {
   "enum": [
    "filter",
    "pick",
    "flatten",
    "keys",
    "count"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-toolkit-json-transform-c81c9cf2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-toolkit.vercel.app](https://www.zero.xyz/host/x402-agent-toolkit.vercel.app/llms.txt)
