{"uid":"cap_XT81XUQ8OjyPJbfjU6qhr","slug":"agentshelf-syntexa-ch-json-pretty-print-4-space-indent-7c3a6285","name":"agentshelf.syntexa.ch JSON Pretty-Print (4-space indent)","description":"Call when an agent needs JSON rewritten with the pretty-4 transform. No network. Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/json-pretty-4 first.","url":"https://agentshelf.syntexa.ch/v1/json-pretty-4?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["{\"b\":1,\"a\":2}"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"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_PphUUfHpYzeqVSfSL3Vw7","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":"Reformats a raw JSON string with 4-space indentation (pretty-print) and returns the result as a formatted string.","exampleAgentPrompt":"Can you reformat this JSON so it's readable with 4-space indentation? Here's the raw blob: {\"name\":\"Alice\",\"age\":30,\"items\":[1,2,3]}","exampleUseCases":[{"title":"Prettify API response for review","prompt":"I just got this huge minified JSON back from an API call and I can't read it — can you pretty-print it with 4-space indents so I can inspect the structure? Here it is: {\"status\":\"ok\",\"data\":{\"id\":42,\"tags\":[\"a\",\"b\"]}}"},{"title":"Format config file for readability","prompt":"This JSON config file got squashed into one line during a build step. Can you reformat it with 4-space indentation so the team can review it properly? {\"env\":\"production\",\"db\":{\"host\":\"localhost\",\"port\":5432}}"},{"title":"Prepare JSON snippet for documentation","prompt":"I need to paste a JSON example into our docs and it needs to look clean and readable with 4-space indentation — can you format this for me? {\"user\":{\"id\":1,\"name\":\"Bob\",\"roles\":[\"admin\",\"viewer\"]}}"}],"resultDescription":"Returns the input JSON string reformatted with 4-space indentation and newlines, making nested structures visually clear. The output is a prettified JSON string suitable for display, logging, or documentation.","failureModes":["Invalid or malformed JSON input causes a parse error response","Empty string or whitespace-only input rejected due to minLength:1 constraint","Input exceeding 100,000 characters rejected due to maxLength constraint","Non-JSON text (plain string, XML, CSV) causes a parsing failure"],"whenToPreferThis":"Use this endpoint when you need deterministic, offline JSON pretty-printing with exactly 4-space indentation and no external network calls. Prefer the free sandbox endpoint POST /v1/sandbox/json-pretty-4 first; fall back to this paid endpoint ($0.01 USDC) when the sandbox is unavailable or rate-limited. Choose this over general-purpose formatters when you need a guaranteed, stateless transformation with a fixed cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T18:45:49.423Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-json-pretty-print-4-space-indent-7c3a6285"}