{"uid":"cap_SKNl0xE_7hsP2piuCpCUY","slug":"json-minifier-b4a65026","name":"JSON Minifier","description":"Minify JSON by stripping whitespace","url":"https://x402render-u5vwpxpyua-uc.a.run.app/json-minify","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"type":"string","description":"string"}}},"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_2eso8kQAniVT0WI1XYmM1","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":"Strips all whitespace from a JSON string to produce a compact, minified version","exampleAgentPrompt":"Can you minify this JSON for me by removing all the whitespace? Here it is: { \"name\": \"Alice\", \"age\": 30, \"city\": \"New York\" }","exampleUseCases":[{"title":"Compress JSON before API call","prompt":"I need to send this JSON payload to an external API but I want to strip out all the whitespace first to keep the request body tight — can you minify it for me? Here's the JSON: { \"order\": { \"id\": 42, \"items\": [\"apple\", \"banana\"] } }"},{"title":"Reduce log storage size","prompt":"I have a big JSON object that's going into our logs and it has tons of indentation and spaces taking up space. Can you compact it into a single line with no extra whitespace? Here it is: {\n  \"event\": \"user_signup\",\n  \"timestamp\": \"2024-01-15T10:30:00Z\",\n  \"user_id\": 9871\n}"},{"title":"Prepare config file for embedding","prompt":"I want to embed this JSON config as a single-line string inside a shell script — please strip all the formatting and whitespace out of it: { \"host\": \"localhost\", \"port\": 5432, \"database\": \"mydb\" }"}],"resultDescription":"Returns the input JSON string with all insignificant whitespace (spaces, tabs, newlines) removed, producing a compact single-line JSON string that is semantically equivalent to the input.","failureModes":["Invalid JSON input — if the input string is not valid JSON, the endpoint may return an error or malformed output","Empty string input — passing an empty or null json field may result in an error response","Malformed request body — omitting the json field entirely will likely cause a validation error"],"whenToPreferThis":"Use this endpoint when you need a quick, cheap ($0.01 USDC) server-side JSON minification without implementing your own parser. It is especially useful in agent pipelines where you need to reduce payload size before further transmission or storage, and you want a reliable, stateless utility call rather than running client-side code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:48:18.987Z","isFirstParty":false}