Skip to content
Fourohtwo

Check that JSON (e.g

agents.204-168-199-108.sslip.io/v1/util/json-validate

Check that JSON (e.g. an LLM's structured output or an API payload) is valid JSON and matches a JSON Schema. Returns valid true/false and every error with its JSON pointer path, keyword and a plain message (missing required property, wrong type, pattern, enum, min/max, format email/uri/date-time/uuid/ipv4, additionalProperties, $ref to #/$defs, allOf/anyOf/oneOf/not, if/then/else). Use before pass

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/util/json-validate

Uptime100% of 1 check 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://agents.204-168-199-108.sslip.io/v1/util/json-validate?data=%7B%22name%22%3A%22A%22%2C%22age%22%3A-1%7D&schema=%7B%22type%22%3A%22object%22%2C%22required%22%3A%5B%22name%22%2C%22age%22%2C%22email%22%5D%2C%22properties%22%3A%7B%22name%22%3A%7B%22type%22%3A%22string%22%2C%22minLength%22%3A2%7D%2C%22age%22%3A%7B%22type%22%3A%22integer%22%2C%22minimum%22%3A0%7D%2C%22email%22%3A%7B%22type%22%3A%22string%22%2C%22format%22%3A%22email%22%7D%7D%7D");
console.log(await res.json());

Example input

{
  "data": "{\"name\":\"A\",\"age\":-1}",
  "schema": "{\"type\":\"object\",\"required\":[\"name\",\"age\",\"email\"],\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":2},\"age\":{\"type\":\"integer\",\"minimum\":0},\"email\":{\"type\":\"string\",\"format\":\"email\"}}}"
}