Skip to content
Fourohtwo

JSON validator and formatter, pretty-print or minify JSON

lookupkit.dev/api/json_format

JSON validator and formatter, pretty-print or minify JSON. Check whether text is valid JSON; if it is, return it pretty-printed (or minified) with its top-level type and size; if not, return the error and where it is.

BaseUnchecked
GEThttps://lookupkit.dev/api/json_format

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://lookupkit.dev/api/json_format?indent=2&json=%7B%22b%22%3A1%2C%22a%22%3A%5B1%2C2%2C3%5D%7D");
console.log(await res.json());

Example input

{
  "indent": 2,
  "json": "{\"b\":1,\"a\":[1,2,3]}"
}

More from Lookup Kit