Skip to content
Fourohtwo

Validate JSON against a self-contained JSON Schema

quantumbears.is/api/microapi/json-structure

Validate JSON against a self-contained JSON Schema. Check JSON syntax, duplicate object keys, schema compliance and document complexity. Reports machine-readable validation errors; external references and regex constraints are unsupported.

BaseAnswering
POSThttps://quantumbears.is/api/microapi/json-structure

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://quantumbears.is/api/microapi/json-structure", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"json":"{\"agent_id\":\"qb-01\",\"active\":true}","schema":{"type":"object","required":["agent_id"],"properties":{"active":{"type":"boolean"},"agent_id":{"type":"string"}},"additionalProperties":false}}),
});
console.log(await res.json());

Example input

{
  "json": "{\"agent_id\":\"qb-01\",\"active\":true}",
  "schema": {
    "type": "object",
    "required": [
      "agent_id"
    ],
    "properties": {
      "active": {
        "type": "boolean"
      },
      "agent_id": {
        "type": "string"
      }
    },
    "additionalProperties": false
  }
}

More from Quantum Bear MicroAPIProvider status