Skip to content
Fourohtwo

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

Flatten nested JSON into one level of dotted keys (for spreadsheets, CSV, env vars, search indexes, form fields) or rebuild nested JSON from flat keys. Choose the separator (., __, /) and array style: bracket (tags[0]) or index (tags.0). Empty objects/arrays and nulls are kept; prototype-pollution keys are refused.

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

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-flatten?data=%7B%22user%22%3A%7B%22name%22%3A%22Ada%22%2C%22tags%22%3A%5B%22x%22%2C%22y%22%5D%2C%22address%22%3A%7B%22city%22%3A%22Dubai%22%7D%7D%2C%22empty%22%3A%7B%7D%2C%22n%22%3Anull%7D");
console.log(await res.json());

Example input

{
  "data": "{\"user\":{\"name\":\"Ada\",\"tags\":[\"x\",\"y\"],\"address\":{\"city\":\"Dubai\"}},\"empty\":{},\"n\":null}"
}