Skip to content
Fourohtwo

Find and parse all JSON objects and arrays inside free text

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

Find and parse all JSON objects and arrays inside free text: chat replies, LLM answers, logs, emails, HTML. Reads ```json code fences first, then inline {...} and [...] blocks; each is repaired if slightly broken (trailing commas, quotes, truncation). Skips prose brackets like [1]. Returns items with data, character offsets, source (code_fence/inline) and fixes, plus 'first' for the common one-obj

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

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/extract-json?text=Order+created+%7B%22id%22%3A+4521%2C+%22status%22%3A+%22paid%22%2C+%22total%22%3A+19.99%7D.+Log%3A+%5B%7B%22step%22%3A+1%2C+%22ok%22%3A+true%7D%2C+%7B%22step%22%3A+2%2C+%22ok%22%3A+false%7D%5D+see+note+%5B1%5D.");
console.log(await res.json());

Example input

{
  "text": "Order created {\"id\": 4521, \"status\": \"paid\", \"total\": 19.99}. Log: [{\"step\": 1, \"ok\": true}, {\"step\": 2, \"ok\": false}] see note [1]."
}