# Delx JSON Escape

> Delx JSON 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-14).

JSON-escapes a string so it can be safely embedded in a JSON template without surrounding quotes

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-escape
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-json-escape-8aba7d9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kMalDkPsnnqgSr0N1dN8B

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 delx-json-escape-8aba7d9d -d '<json body>'
```

Example prompt: JSON-escape this string so I can safely drop it into a JSON template: 'He said "hello\nworld" and it broke everything.'

## When to prefer this

Choose this endpoint when you need a lightweight, stateless, no-dependency JSON string escape operation inside an agent pipeline — especially when building JSON templates dynamically from user input or external data that may contain quotes, backslashes, or control characters. Ideal when you don't want to ship or invoke a local JSON library, or when running in a constrained environment where local code execution is unavailable.

## Known failure modes

- Missing or empty 'text' field returns an error
- Input that is too large may be rejected
- x402 payment failure if USDC funds are insufficient or wallet not configured
- Network timeout or 5xx if the service is temporarily unavailable

## How this service works

JSON-escape a string (without surrounding quotes). Call when you embed text into a larger JSON template safely. Returns escaped string body for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

A JSON-escaped version of the input string — with special characters such as double quotes, backslashes, newlines, tabs, and control characters properly escaped — ready to be inserted directly as a value inside a JSON document without surrounding quotes added.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "say \\\"hello\\\"\\nline2",
  "schema": "delx/util-json-escape/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-json-escape-8aba7d9d/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)
