{"uid":"cap_KKuXLGiiNtGcu3iDCh1gg","slug":"agent-data-tools-json-minify-0f7390fe","name":"Agent Data Tools: JSON Minify","description":"Remove all unnecessary whitespace from JSON and report the size before and after. Use to shrink payloads or prompts.","url":"https://agent-data-tools.revmesh2074.workers.dev/json/minify?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The JSON text"}}},"responseSchema":{"type":"object","properties":{"after":{"type":"number"},"before":{"type":"number"},"minified":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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_1Vm71Nlnk0R33sqT9EPIV","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 whitespace from a JSON string and returns the minified version along with before/after character counts","exampleAgentPrompt":"Can you minify this JSON for me? {\"name\": \"Alice\", \"age\": 30} — I want it stripped of all whitespace so it's as compact as possible.","exampleUseCases":[{"title":"Compact payload before API call","prompt":"I have this pretty-printed JSON config and I need it minified before sending it in a request body: { \"env\": \"production\", \"debug\": false, \"timeout\": 30 } — strip all the whitespace."},{"title":"Measure JSON size reduction","prompt":"How much smaller does this JSON get when minified? I want to see the before and after character counts for: { \"items\": [ { \"id\": 1, \"value\": \"foo\" }, { \"id\": 2, \"value\": \"bar\" } ] }"},{"title":"Prepare JSON for embedding in code","prompt":"Minify this JSON object so I can embed it as a single-line string in my source code: { \"host\": \"localhost\", \"port\": 5432, \"database\": \"mydb\", \"ssl\": true }"}],"resultDescription":"Returns a JSON object containing the minified JSON string, the character count before minification, and the character count after minification, allowing the caller to see the compression ratio achieved.","failureModes":["Invalid or malformed JSON input causes a parse error response","Empty text parameter results in an error","Non-JSON text (e.g. XML, plain text) passed as input causes failure","Very large JSON payloads may be rejected or time out"],"whenToPreferThis":"Use this endpoint when you need a quick, no-auth, pay-per-call JSON minification utility that also returns size statistics. Ideal for agents that need to compress JSON payloads inline without spinning up local processing, especially within the Agent Data Tools ecosystem where other crypto, web, and data tools are also available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:39:36.204Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-json-minify-0f7390fe"}