# Delx Json Validate

> Delx Json Validate 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).

Validates, normalizes, and pretty-prints a JSON payload, returning structured errors or a formatted result for $0.001 USDC per call.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-validate
- 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/delx-json-validate-02638bc1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TPXVbO7nYazVQyYe7XSq-

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-validate-02638bc1 -d '<json body>'
```

Example prompt: Can you validate this JSON for me and pretty-print it if it's valid: {"name":"Alice","age":30,"tags":["admin","user"]}? I want to know if there are any syntax errors.

## When to prefer this

Choose this endpoint when you need a quick, cheap, no-auth JSON validation step inside an agent pipeline — especially when you want structured error output (not just a boolean) and a pretty-printed normalized form. It's ideal for validating agent-generated JSON, user-submitted config blobs, or API responses before further processing. Prefer it over rolling your own parser when you need consistent structured error formatting and pay-per-use pricing with no API key setup.

## Known failure modes

- Payload too large — if the JSON exceeds the bounded size limit, the endpoint will reject it
- Unparseable input — non-JSON text returns a structured error with position and description of the syntax fault
- Network timeout — rare but possible under load
- Payment failure — x402 payment not settled results in a 402 response

## How this service works

JSON validation API for agents: validate, normalize, and pretty-print a bounded JSON payload for $0.001 USDC with structured errors—no API key or upstream. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

Returns a structured response indicating whether the JSON is valid, a normalized and pretty-printed version of the JSON if valid, and structured error details (position, message, type) if invalid. No API key is required; payment is $0.001 USDC per call via x402.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

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