{"uid":"cap_CTu4KchRA3O3CLv2lR8DH","slug":"agentshelf-json-minify-88cbeb4d","name":"AgentShelf JSON Minify","description":"Call when an agent needs JSON rewritten with the minify transform. No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/json-minify first.","url":"https://agentshelf.syntexa.ch/v1/json-minify?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.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_hxU4hwO8r89jmHZ_Lk4iA","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":"Minifies (compresses) a JSON string by removing all unnecessary whitespace, returning a compact single-line JSON output.","exampleAgentPrompt":"Can you minify this JSON for me — strip out all the whitespace and indentation so it's compact: {\"name\": \"Alice\", \"age\": 30, \"active\": true}?","exampleUseCases":[{"title":"Compact API payload before sending","prompt":"Take this pretty-printed JSON config and minify it into a single line so I can embed it in an HTTP header: {\"service\": \"payments\", \"version\": 2, \"enabled\": true, \"retries\": 3}."},{"title":"Shrink JSON for storage efficiency","prompt":"I have a large JSON blob I need to store — can you strip all the whitespace and indentation out of it to make it as compact as possible? Here it is: {\"users\": [{\"id\": 1, \"name\": \"Bob\"}, {\"id\": 2, \"name\": \"Carol\"}]}."},{"title":"Minify JSON before hashing","prompt":"Before I hash this JSON object I need it minified with no extra spaces or newlines — can you compact this for me: {\"timestamp\": \"2024-01-15\", \"amount\": 99.99, \"currency\": \"USD\"}?"}],"resultDescription":"Returns a compact, single-line JSON string with all unnecessary whitespace, newlines, and indentation removed. The JSON structure and values are preserved exactly; only formatting characters are stripped.","failureModes":["Invalid or malformed JSON input returns an error — the endpoint does not repair broken JSON","Empty text field (minLength:1) returns a validation error","Input exceeding 100,000 characters is rejected","Non-JSON text (e.g. plain strings, YAML, XML) will likely fail or return an error"],"whenToPreferThis":"Choose this endpoint when you need a pure, offline JSON minification with no external network calls and a guaranteed flat $0.001 USDC cost. Prefer the free unpaid POST /v1/sandbox/json-minify endpoint first if available. Use this paid version when the sandbox is unavailable or when a reliable production-grade response is required for minification only — not for sorting keys, deep sorting, or format conversion (use sibling endpoints for those).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:48:30.341Z","isFirstParty":false,"canonicalSlug":"agentshelf-json-minify-88cbeb4d"}