{"uid":"cap_jzvsXsvjqllYTnVDQYZkB","slug":"feral-tools-json-formatter-597d6a82","name":"Feral Tools JSON Formatter","description":"Small deterministic APIs purchasable with x402 USDC on Base.","url":"https://feral-tools.vercel.app/api/format","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"description":"A JSON value or a string containing JSON"},"indent":{"type":"integer","default":2,"maximum":8,"minimum":0},"schema":{"type":"object","description":"Optional JSON Schema (draft-07) used to validate the input"},"sortKeys":{"type":"boolean","default":false}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"object","indent":2,"sortKeys":true,"formatted":"{\n  \"a\": 1,\n  \"b\": 2\n}"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IWsFaxsGCITk_0aznlWSf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats, prettifies, and optionally sorts keys of a JSON object with configurable indentation via a paid API","exampleAgentPrompt":"Can you format this JSON object for me with 2-space indentation and sort the keys alphabetically: {\"b\": 2, \"a\": 1}?","exampleUseCases":[{"title":"Prettify API response for debugging","prompt":"I just got this raw minified JSON back from an API and I can't read it — can you reformat it with 4-space indentation and sort the keys so I can debug it? Here it is: {\"z\":99,\"a\":1,\"m\":42}"},{"title":"Canonical JSON for config file storage","prompt":"Before I save this config object to disk, can you format it with 2-space indentation and sort the keys so the output is always deterministic? The object is {\"timeout\":30,\"host\":\"localhost\",\"port\":8080}"},{"title":"Normalize JSON for diff comparison","prompt":"I need to compare two JSON blobs to see what changed — can you format both with sorted keys and 2-space indent so the diff is meaningful? Start with this one: {\"enabled\":true,\"version\":\"1.2\",\"name\":\"service-a\"}"}],"resultDescription":"Returns a JSON object with an 'ok' boolean, the detected type of the input, the indent level used, whether keys were sorted, and a 'formatted' string containing the prettified JSON ready for display or storage.","failureModes":["Invalid or malformed JSON input returns an error response","Missing required body fields may cause a 400-level error","Network or server errors may return non-200 status","Payment not completed via x402 protocol results in 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, paid-per-call JSON formatting service with configurable indentation and optional key sorting — especially useful in agentic pipelines where canonical, reproducible JSON output is required without standing up your own formatting logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:33:11.357Z","isFirstParty":false}