# JMESPath JSON Query

> JMESPath JSON Query is a paid API for AI agents from toolbelt402.tpoborne.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Evaluates a JMESPath expression against a JSON document to extract, filter, project, and reshape nested data.

## Facts

- Endpoint: POST https://toolbelt402.tpoborne.workers.dev/json/query
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jmespath-json-query-2301afca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nMhRC2IyX5fVHbLGMA9zb

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 jmespath-json-query-2301afca -d '<json body>'
```

Example prompt: I have this big nested JSON blob from an API response and I want to extract just the list of user emails using the JMESPath expression `users[*].email` — can you run that query against the JSON for me?

## When to prefer this

Use this endpoint when you need deterministic, standard JMESPath querying against a JSON document without writing custom parsing code. Ideal for AI agents that receive complex API responses and need to reliably extract specific fields, filter arrays, or reshape data according to a known schema. Prefer it over JSONPath alternatives when AWS-compatible JMESPath semantics are required.

## Known failure modes

- Invalid JMESPath syntax returns a parse error describing the malformed expression
- JMESPath path that matches nothing returns null or an empty array rather than an error
- Malformed input JSON (not valid JSON) returns a parse error
- Very deeply nested or extremely large JSON documents may time out or hit payload size limits

## How this service works

Query JSON with a JMESPath expression — extract, filter, project, and reshape nested data with the AWS-standard query language. Deterministic JSON extraction.

## Output

Returns the deterministic result of evaluating the JMESPath expression against the input JSON — could be a scalar value, an object, an array of objects, or null if the path matches nothing. The response is itself valid JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "description": "Any JSON document"
  },
  "query": {
   "type": "string",
   "description": "JMESPath expression"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jmespath-json-query-2301afca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolbelt402.tpoborne.workers.dev](https://www.zero.xyz/host/toolbelt402.tpoborne.workers.dev/llms.txt)
