# CORE JSON Validator

> CORE JSON Validator is a paid API for AI agents from api.coregroupimmo.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Validates a JSON data document against a restricted draft-07 JSON Schema and returns a boolean valid/invalid result with error details

## Facts

- Endpoint: POST https://api.coregroupimmo.com/v1/json/validate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/core-json-validator-ef135586
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rBSnurkrg3Va-6Zr0e8Zn

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 core-json-validator-ef135586 -d '<json body>'
```

Example prompt: Before I import this product catalog JSON, can you validate it against my schema to make sure all required fields are present and all values are within the allowed ranges?

## When to prefer this

Choose this endpoint when you need a lightweight, bounded JSON Schema validation step before importing, publishing, or processing JSON data and want strict control over resource usage. It is ideal for restricted draft-07 schemas using only types, required, items, enums, and numeric/length bounds — without needing regex, combinators, or external references. Prefer it over general-purpose schema validators when operating in cost-sensitive or automated agent pipelines where predictable pricing ($0.002/call), capped compute, and simple pass/fail results are sufficient.

## Known failure modes

- Input JSON exceeds 256 KiB limit — returns error indicating payload too large
- Schema depth exceeds 32 levels — returns schema depth violation error
- Schema uses unsupported features (regex patterns, combinators like anyOf/oneOf, external $ref) — returns unsupported schema feature error
- Work cap of 50,000 units exceeded during validation — returns timeout/work-limit error
- Malformed JSON in dataJson or schemaJson (not valid JSON strings) — returns parse error
- Node count exceeds 10,000 for data or 2,000 for schema — returns node limit error

## How this service works

Use this service before importing or publishing JSON to check it against a restricted draft-07 schema. Send dataJson and schemaJson as JSON-encoded strings. Max 256 KiB UTF-8 each, depth 32; bounded node and work limits. Supports types, required properties, items, enums and numeric/length bounds. No regex, combinators or external references. Invalid business data returns valid=false.

## Output

Returns a JSON object containing a boolean 'valid' field indicating whether the data passed schema validation, plus an array of error objects describing any violations including the failing path, expected constraints, and actual values found — allowing the caller to pinpoint exactly which fields or values are non-conformant.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dataJson": {
   "type": "string",
   "maxLength": 262144,
   "description": "JSON-encoded data, at most 256 KiB UTF-8, depth 32, 10000 nodes."
  },
  "schemaJson": {
   "type": "string",
   "maxLength": 262144,
   "description": "JSON-encoded restricted draft-07 schema: at most 256 KiB UTF-8, depth 32, 2000 nodes. No external references, regex or combinators. Work cap 50000."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "valid": true,
   "counts": {
    "errors": 0,
    "dataNodes": 2,
    "schemaNodes": 7
   },
   "errors": [],
   "truncated": false
  },
  "service": "core-json-validator"
 }
}
```

## More

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