# JSON Pointer Escape

> JSON Pointer Escape is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Escapes a single JSON Pointer reference token by applying RFC 6901 escaping rules (~0 and ~1 substitutions) to a caller-supplied string.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-pointer-escape
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-pointer-escape-f1cd79d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TZn-hr3LOxa1L-1a-W4vQ

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-pointer-escape-f1cd79d1 -d '<json body>'
```

Example prompt: Escape the JSON Pointer reference token 'store/item~name' so I can safely embed it in a JSON Pointer path — apply RFC 6901 rules for tildes and slashes.

## When to prefer this

Use this endpoint when an AI agent needs to safely encode a single string as a JSON Pointer reference token (per RFC 6901) before constructing or passing a JSON Pointer path to a downstream tool. Prefer it over ad-hoc string replacement when you need a versioned, deterministic result contract with transformation counts for auditing or debugging. Ideal as a pre-processing step in agentic pipelines that assemble JSON Pointer expressions from user-supplied or dynamic field names.

## Known failure modes

- Token exceeds 8192 character limit — request rejected
- Malformed request body — missing or invalid token field
- Payment failure via x402 — call not executed
- Upstream timeout or service unavailability — 5xx error returned

## How this service works

JSON Pointer Escape: JSON Pointer Escape escapes one JSON Pointer reference token from bounded caller-supplied values without an external provider. Call JSON Pointer Escape before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Pointer Escape as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-part…

## Output

Returns a versioned deterministic JSON object containing the escaped token string, normalized values, transformation counts indicating how many substitutions were made, and a versioned result contract — all processed in memory without data retention.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "type": "string",
   "maxLength": 8192,
   "description": "Token supplied to JSON Pointer Escape; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "token": "a~1b~0c"
  },
  "schema": "delx/util-json-pointer-escape/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "3927fe1bae99d89a23fe6e2ad6ea1b89041d27d864253356169270df01635a75",
   "external_calls": 0
  },
  "operation": "data_batch:json_pointer_escape"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-pointer-escape-f1cd79d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
