Skip to content
Fourohtwo

Infers a JSON Schema from example JSON data

fastx402.tools/json-schema-generate

Infers a JSON Schema from example JSON data. Useful when agents need to document APIs, validate similar data, or generate type definitions from samples.

BaseAnswering
GEThttps://fastx402.tools/json-schema-generate

Uptime100% of 5 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://fastx402.tools/json-schema-generate?json=%7B%22name%22%3A%22Alice%22%2C%22age%22%3A30%2C%22active%22%3Atrue%2C%22tags%22%3A%5B%22dev%22%2C%22admin%22%5D%7D");
console.log(await res.json());

Example input

{
  "json": "{\"name\":\"Alice\",\"age\":30,\"active\":true,\"tags\":[\"dev\",\"admin\"]}"
}

More from FastX402 LabProvider status