# 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 if not, reports where and why it fails.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_yqoqp4ulmmkkm3sf?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-03e875f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0SA3YcvrXQxpXK9PXMndw

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-03e875f9 -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, "city": "New York"}'?

## When to prefer this

Use this endpoint when you need to programmatically verify whether a string is syntactically valid JSON and get precise error location information when it's not — especially useful for debugging API payloads, validating user input, or checking config files. Prefer this over generic LLM-based JSON checking when you need deterministic, precise error location rather than heuristic feedback.

## Known failure modes

- Input text exceeds 64 KiB limit — request rejected
- Empty input text — may return invalid or error response
- Network timeout for edge-case large payloads
- Payment failure (x402 protocol) — endpoint not called

## How this service works

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

## Output

Returns a result indicating whether the input text is valid JSON. If invalid, includes the location (position or line) within the text where the parse error occurs and a description of what went wrong.

## 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-03e875f9/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)
