# klymax402 JSON Validator

> klymax402 JSON Validator is a paid API for AI agents from klymax402.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Validates a JSON string for syntax correctness, optionally validating it against a provided JSON Schema

## Facts

- Endpoint: GET https://klymax402.com/api/json-validator/api/validate
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/klymax402-json-validator-7c7acc02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I4tIQX3t91NjvxM5-h2sT

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 klymax402-json-validator-7c7acc02
```

Example prompt: Can you check if this JSON string is valid and also verify it matches the schema I have — the JSON is '{"name":"Alice","age":30}' and the schema requires name to be a string and age to be an integer?

## When to prefer this

Use this endpoint when you need a quick, pay-per-use JSON validation without setting up your own validator or managing API keys. Ideal for agents that occasionally need to verify JSON correctness or schema compliance as part of a larger workflow, especially when already using the klymax402 suite of APIs via a single MCP endpoint.

## Known failure modes

- Malformed input where 'json' parameter is empty or missing returns an error
- Invalid or malformed JSON Schema object causes schema-validation step to fail
- Very large JSON strings may time out or be rejected
- Network or payment failure returns a 402 Payment Required or connection error

## How this service works

One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.

## Output

Returns a validation result indicating whether the JSON string is syntactically valid and, if a schema is provided, whether it conforms to that schema. Includes specific error messages describing any syntax errors or schema violations found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "string",
   "description": "JSON string to validate"
  },
  "schema": {
   "type": "object",
   "description": "Optional JSON Schema to validate against"
  }
 }
}
```

## More

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