{"uid":"cap_7Af7bESyIIfYqgzQUS17U","slug":"delx-pretty-print-json-f16ed365","name":"Delx Pretty-Print JSON","description":"Pretty-print JSON. Call before showing configs to humans or attaching readable debug dumps. Returns indented JSON text; invalid JSON returns a structured error. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/json-pretty","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json_text":{"type":"string","description":"Serialized JSON text to inspect or reformat."}}},"responseSchema":{"type":"json","example":{"text":"{\n  \"agent\": \"delx\",\n  \"ready\": true\n}","schema":"delx/json-pretty/v1"}},"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_xEquanNcxC_EX7cn3iNHQ","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":"Reformats serialized JSON text into indented, human-readable output; returns a structured error for invalid JSON.","exampleAgentPrompt":"Can you pretty-print this JSON for me so I can read it? Here it is: {\"name\":\"Alice\",\"age\":30,\"active\":true}","exampleUseCases":[{"title":"Display config to end user","prompt":"I need to show this config JSON to the user in a readable way — can you pretty-print it before rendering it in the UI? Here's the raw string: {\"host\":\"localhost\",\"port\":5432,\"db\":\"myapp\"}"},{"title":"Attach readable debug dump","prompt":"Before I attach this API response to the debug log, can you reformat it with proper indentation so engineers can read it? The JSON is: {\"status\":\"ok\",\"data\":{\"id\":42,\"items\":[1,2,3]}}"},{"title":"Validate and inspect unknown JSON","prompt":"I got this JSON blob from a webhook and I'm not sure if it's valid — can you pretty-print it so I can inspect the structure? Here it is: {\"event\":\"purchase\",\"amount\":99.99,\"currency\":\"USD\"}"}],"resultDescription":"Returns the input JSON reformatted with standard indentation and newlines, making it human-readable. If the input is not valid JSON, returns a structured error object describing the parse failure rather than throwing an exception.","failureModes":["Invalid JSON input returns a structured error response (not an HTTP error), with details about the parse failure","Malformed or empty json_text field may return a validation error","Network or payment failure via x402 may prevent the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, first-party JSON formatter with no API key or subscription requirements, billed only on success via x402 micropayment. Ideal for agents that need to pretty-print configs, API responses, or debug dumps before presenting them to humans, especially in pipelines where a lightweight pay-per-use formatter is preferable to bundling a local JSON library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:11:29.747Z","isFirstParty":false}