{"uid":"cap_x-Z-HWDYbsumgpK2gMSZV","slug":"stationfx-json-to-toon-converter-eaa83cf2","name":"StationFX JSON-to-TOON Converter","description":"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.","url":"https://stationfx.com/util/convert/json-to-toon?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","schema":{"type":"object","required":["result"],"properties":{"result":{"type":"string","description":"TOON-formatted text (text/plain; charset=utf-8). Pipe-delimited rows: result_type header, field names, separator, then one row per observation. ~60-70% fewer tokens than equivalent JSON for time-series data."},"content_type":{"type":"string","description":"Always text/plain; charset=utf-8"}}},"example":{"result":"result_type=series\nfields=date|value\n---\n2024-01-01|27360.99\n2024-04-01|27490.12","content_type":"text/plain; charset=utf-8"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_82S3KV4anOhXMZ-VYcGZK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a JSON payload into TOON (Tokenized Object Notation), a compact pipe-delimited format that reduces token count by ~60-70% versus equivalent JSON for time-series data.","exampleAgentPrompt":"Take this JSON array of time-series economic data and convert it to TOON format so I can fit more of it into my LLM context window — it's about 200 KB of raw JSON.","exampleUseCases":[{"title":"Compressing financial data for LLM analysis","prompt":"I have a big JSON payload of daily stock price data — about 300 KB — and I need to squeeze it down before sending it to GPT-4. Can you convert it to TOON format to cut the token count?"},{"title":"Optimizing macro data feeds for AI pipelines","prompt":"I'm pulling monthly CPI and unemployment data as JSON from an economic API and it's eating up my context window. Convert this JSON envelope with the meta and data fields to TOON so I can process more history at once."},{"title":"Reducing token cost in agent memory","prompt":"My agent keeps hitting context limits when it stores time-series sensor readings in JSON. Convert this raw JSON array of readings to TOON pipe-delimited format so it takes up far fewer tokens in memory."}],"resultDescription":"A plain-text TOON-formatted string (text/plain; charset=utf-8) consisting of pipe-delimited rows with a header block, representing the original JSON data in a compact form that typically uses 60-70% fewer tokens than the equivalent JSON for time-series payloads.","failureModes":["HTTP 413 if the request body exceeds 512 KB — checked before payment is processed","Invalid or malformed JSON body returns an error without consuming a payment","Missing required 'input' field in the request body results in a validation error","Unsupported HTTP method (anything other than POST/PUT/PATCH) returns a 405","Authentication failure if bearer token is invalid or expired; payment via x402 USDC on Base required if no token is present"],"whenToPreferThis":"Choose this endpoint when you need to pass large JSON time-series datasets to an LLM and context window or token cost is a concern. It is specifically optimized for array-shaped time-series data (e.g. financial, economic, or sensor readings) and achieves 60-70% token reduction. Prefer it over generic compression if your goal is LLM-token efficiency rather than byte-level compression. Not ideal for deeply nested or non-tabular JSON structures where the gains may be smaller.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:34:38.365Z","isFirstParty":false,"canonicalSlug":"stationfx-json-to-toon-converter-eaa83cf2"}