# centralcity.ai JSON Validator

> centralcity.ai JSON Validator is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Checks whether a text string is valid JSON and reports exactly where it fails if not.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_bocpptzjyrfu574a?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-json-validator-e442e12f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AYNcAKegv6viZaT_4L8IN

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 centralcity-ai-json-validator-e442e12f -d '<json body>'
```

Example prompt: Can you check if this string is valid JSON and tell me exactly where it goes wrong if not: '{"name": "Alice", "age": 30, "active": true,}'

## When to prefer this

Use this endpoint when you need a quick, cheap, and reliable syntax-only JSON validity check with precise error location reporting — especially useful before passing user-supplied or API-received text into a JSON parser, or when debugging why a JSON string is failing to parse. Prefer this over a full JSON Schema validator (which checks structure and types) when you only need to know if the text is syntactically valid JSON.

## Known failure modes

- Input text exceeds 64 KiB limit — rejected with size error
- Empty string input — reported as invalid JSON
- Network or payment failure — no validation result returned
- Ambiguous or partial error location if JSON is deeply malformed

## How this service works

Checks whether a text is valid JSON, and where it fails if not.

## Output

Returns whether the input text is valid JSON. If invalid, includes the location (line/column or character offset) and a description of where and how parsing failed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The JSON text, at most 64 KiB."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/centralcity-ai-json-validator-e442e12f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centralcity.ai](https://www.zero.xyz/host/centralcity.ai/llms.txt)
