{"uid":"cap_pWZEeSSP8hxdh-nAjJTBJ","slug":"json-pretty-printer-e081bc2f","name":"JSON Pretty Printer","description":"Quality-scored paid utility APIs for AI agents over x402 on Base USDC.","url":"https://agent-utility-network.frosty-sound-4560.workers.dev/v1/paid/json-pretty","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":100000,"minLength":1}}},"responseSchema":{"type":"json","example":{"result":{"formatted":"{\n  \"a\": 1\n}"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_W7JL3EBug6JXtg_1aiSVp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats a raw JSON string into human-readable, indented pretty-printed JSON output.","exampleAgentPrompt":"Can you pretty-print this JSON for me so it's readable? Here's the input: {\"a\":1,\"b\":{\"c\":2,\"d\":[3,4,5]}}","exampleUseCases":[{"title":"Readable API response logging","prompt":"This API response came back as one long minified line — can you format it with proper indentation so I can read through the structure? Here it is: {\"user\":{\"id\":123,\"name\":\"Alice\",\"roles\":[\"admin\",\"editor\"]},\"status\":\"active\"}"},{"title":"Debugging compact config file","prompt":"I have this compact JSON config and I need to read it carefully to spot a bug — can you pretty-print it for me? {\"server\":{\"host\":\"localhost\",\"port\":8080},\"db\":{\"url\":\"postgres://localhost/mydb\",\"pool\":5}}"},{"title":"Presenting JSON output in a report","prompt":"I need to paste some JSON into a document for my team and it needs to be properly formatted and readable — can you pretty-print this for me: {\"results\":[{\"id\":1,\"score\":0.98},{\"id\":2,\"score\":0.75}],\"total\":2}"}],"resultDescription":"Returns a JSON object with a `result.formatted` field containing the input JSON re-serialized with standard 2-space indentation and newlines, making nested structures human-readable.","failureModes":["Invalid or malformed JSON input returns an error (for malformed JSON, consider the sibling JSON-repair endpoint first)","Input exceeding 100,000 characters is rejected","Empty string input is rejected (minLength: 1)","Payment failure via x402/Base USDC causes request to be denied"],"whenToPreferThis":"Choose this endpoint when you have a valid but compact or minified JSON string and need it formatted for readability — for display, logging, debugging, or documentation purposes. If your JSON is malformed or broken, use the sibling JSON-repair endpoint first. This endpoint is purpose-built for formatting only and is ideal for agents that need to present structured data in a human-friendly way.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:44:40.662Z","isFirstParty":false}