{"uid":"cap_BtN8g-fg_3GROD46yk14-","slug":"agentshelf-json-pretty-2-formatter-08a75064","name":"AgentShelf JSON Pretty-2 Formatter","description":"Call when an agent needs JSON rewritten with the pretty-2 transform. No network. Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/json-pretty-2 first.","url":"https://agentshelf.syntexa.ch/v1/json-pretty-2?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.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NxkuRulfA1IYxlRDS5ZD1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reformats a JSON string using the 'pretty-2' transform (2-space indented pretty-printing) and returns the result as formatted JSON text.","exampleAgentPrompt":"Can you pretty-print this JSON for me using 2-space indentation? Here's the raw text: {\"name\":\"Alice\",\"age\":30,\"roles\":[\"admin\",\"user\"]}","exampleUseCases":[{"title":"Readable API response for debugging","prompt":"I just got this minified JSON back from an API call and I can't read it — can you reformat it with 2-space indentation so I can actually see what's in it? Here it is: {\"status\":\"ok\",\"data\":{\"id\":42,\"items\":[1,2,3]}}"},{"title":"Prettify config file before committing","prompt":"Before I commit this config file, can you run it through the pretty-2 formatter to make it nicely indented with 2 spaces? Here's the raw JSON: {\"env\":\"production\",\"debug\":false,\"port\":8080}"},{"title":"Format log output for human review","prompt":"Our logger is outputting JSON logs as single lines and they're impossible to read — can you pretty-print this log entry with 2-space indentation? Here it is: {\"timestamp\":\"2024-01-15T10:23:00Z\",\"level\":\"error\",\"message\":\"connection refused\",\"host\":\"db-01\"}"}],"resultDescription":"Returns the input JSON string reformatted with 2-space indentation (pretty-2 style), making nested structures human-readable. The output is a well-formatted JSON text string with consistent indentation applied throughout.","failureModes":["Invalid or malformed JSON input causes a parse error and no output is returned","Input text exceeding 100,000 characters is rejected","Empty string input is rejected (minLength: 1)","Non-JSON text input (plain text, XML, CSV) may fail or produce unexpected output"],"whenToPreferThis":"Choose this endpoint when you specifically need 2-space indented pretty-printing of JSON and want a guaranteed fixed cost of $0.009 USDC per call with no network calls or LLM involvement. Prefer the free sandbox endpoint POST /v1/sandbox/json-pretty-2 first if available; use this paid endpoint when the sandbox is unavailable or quota is exhausted. Use this over general-purpose formatters when you need deterministic, offline JSON formatting without side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T00:53:52.638Z","isFirstParty":false,"canonicalSlug":"agentshelf-json-pretty-2-formatter-08a75064"}