# Vextorium JSON Inspector

> Vextorium JSON Inspector is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-15).

Validates, formats, structurally analyzes, and extracts values from JSON text by dot-bracket path

## Facts

- Endpoint: POST https://api.vextorium.com/v1/json-inspect?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-json-inspector-7e458fc6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y0j8GcqisPVhovJw30EC-

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 vextorium-json-inspector-7e458fc6 -d '<json body>'
```

Example prompt: Can you validate this JSON for me and tell me if there are any errors with line and column info — and if it's valid, pretty-print it and extract the value at data.items[0].price: {"data":{"items":[{"name":"A","price":3}]}}

## When to prefer this

Choose this endpoint when you need to validate JSON with precise error location, inspect its structural properties (depth, key inventory, type distribution), format it for readability or transmission, or extract a deeply nested value by dot-bracket path — all in a single call. Prefer it over local JSON parsers when running in an agent environment without native code execution, or when you need the structural summary alongside validation.

## Known failure modes

- Invalid or non-JSON text in body — returns valid:false with line/column of first syntax error
- JSON payload exceeds 2 MB limit — request rejected
- Malformed extraction path (e.g. non-existent key or out-of-bounds array index) — value field returns null
- Missing required 'text' field in body — request fails with schema validation error
- Network timeout on very large (near-limit) payloads

## How this service works

Validate JSON (with line and column of the error), pretty-print or minify it, describe its structure (depth, keys, value types) and extract a value by path such as data.items[0].price.

## Output

A JSON object with: validity flag, error location (line/column) if invalid, formatted JSON string (pretty or minified), depth of nesting, count of objects and arrays, list of distinct keys, count of values by type (string, number, etc.), total byte size, byte savings from minification, and the extracted value at the requested path if a route was supplied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "JSON text (up to 2 MB)"
  },
  "route": {
   "type": "string",
   "description": "Path to extract, e.g. data.items[0].price (optional)"
  },
  "format": {
   "enum": [
    "pretty",
    "minified",
    "none"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 43,
  "depth": 4,
  "route": "data.items[0].price",
  "valid": true,
  "value": 3,
  "arrays": 1,
  "objects": 3,
  "formatted": "{\"data\":{\"items\":[{\"name\":\"A\",\"price\":3}]}}",
  "root_type": "object",
  "distinct_keys": [
   "data",
   "items"
  ],
  "savings_bytes": 0,
  "values_per_type": {
   "number": 1,
   "string": 1
  }
 }
}
```

## More

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