81trust / 100
Convert Json To Toon
by StationFX in Documents & files
x402 APIPassing, checked 2 h ago
Convert a JSON payload to TOON (Tokenized Object Notation), a compact pipe-delimited format that achieves ~60-70% token reduction versus equivalent JSON on time-series payloads. Accepts a raw array or an envelope {meta, data, result_type}. Max body: 512 KB (HTTP 413 if exceeded; checked before payment). Pay $0.005 per call via x402 USDC on Base, or use a bearer token from /token/purchase.
POST https://stationfx.com/util/convert/json-to-toon
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 205 ms typical, 205 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://stationfx.com/util/convert/json-to-toon" \
-H "content-type: application/json" \
-d '{}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fstationfx.com%2Futil%2Fconvert%2Fjson-to-toon
const res = await pay("https://stationfx.com/util/convert/json-to-toon", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({}),
});
console.log(await res.json());Example input
{}Example output
{
"content_type": "text/plain; charset=utf-8",
"result": "result_type=series\nfields=date|value\n---\n2024-01-01|27360.99\n2024-04-01|27490.12"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 205 ms | $0.005 |
| 7 h ago | Passed | 402 | 279 ms | $0.005 |