Skip to content
Fourohtwo

stationfx.com/util/convert/json-to-toon

Convert flat tabular JSON (array of objects, or {meta, data, result_type}) to TOON, a compact pipe-delimited text format with ~60-70% fewer tokens than JSON. $0.005 per call via x402 USDC on Base or Solana, or a bearer token.

BaseSolanaUnchecked
POSThttps://stationfx.com/util/convert/json-to-toon

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://stationfx.com/util/convert/json-to-toon", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"oneOf":[{"description":"Array shorthand — a list of JSON objects. Each object is one row; keys become column headers. Meta defaults to empty, result_type to 'series'.","items":{"type":"object"},"type":"array"},{"description":"Envelope form with explicit meta, data array, and optional result_type ('series' or 'signal').","properties":{"data":{"items":{"type":"object"},"type":"array"},"meta":{"typ),
});
console.log(await res.json());

Example input

{"oneOf":[{"description":"Array shorthand — a list of JSON objects. Each object is one row; keys become column headers. Meta defaults to empty, result_type to 'series'.","items":{"type":"object"},"type":"array"},{"description":"Envelope form with explicit meta, data array, and optional result_type ('series' or 'signal').","properties":{"data":{"items":{"type":"object"},"type":"array"},"meta":{"typ

More from StationFX