{"uid":"cap_VpPSlma23s460VAP6mi5i","slug":"fastx402-json-minify-4a2a022b","name":"FastX402 JSON Minify","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/json-minify?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["json"],"properties":{"json":{"type":"string","description":"A valid JSON value to minify, up to 100000 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"minified":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"minified":"{\"name\":\"Ada\",\"tags\":[\"dev\",\"tools\"],\"active\":true}"}},"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_Sv-EGt1Tjq49yQdLNgi9C","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":"Removes all whitespace and formatting from a JSON value to produce a compact minified string","exampleAgentPrompt":"Can you minify this JSON for me so it's all on one line with no extra spaces? Here it is: { \"name\": \"Ada\", \"tags\": [ \"dev\", \"tools\" ], \"active\": true }","exampleUseCases":[{"title":"Compact API payload before sending","prompt":"I need to send this JSON config in a URL query parameter but it's too long with all the formatting — strip out all the whitespace and newlines so it's compact: { \"env\": \"production\", \"retries\": 3, \"timeout\": 30 }"},{"title":"Reduce log file JSON size","prompt":"Can you minify this JSON object so I can store it more efficiently? It's pretty-printed right now: { \"event\": \"login\", \"user\": \"alice@example.com\", \"timestamp\": \"2024-06-01T12:00:00Z\" }"},{"title":"Normalize JSON for comparison or hashing","prompt":"I want to hash two JSON objects to check if they're equal, but they have different indentation — minify both of them for me so I can compare them properly. Start with this one: { \"id\": 42, \"status\": \"active\" }"}],"resultDescription":"A JSON object with a single field 'minified' containing the input JSON serialized as a compact single-line string with all unnecessary whitespace removed. For example: {\"minified\":\"{\\\"name\\\":\\\"Ada\\\",\\\"tags\\\":[\\\"dev\\\",\\\"tools\\\"],\\\"active\\\":true}\"}","failureModes":["Invalid JSON input returns an error — the 'json' query parameter must be a valid JSON value","Input exceeding 100,000 characters may be rejected","Missing 'json' query parameter results in a validation error","Payment failure via x402 protocol prevents the call from being processed"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, pay-per-call JSON minifier with no API key setup, especially in agent workflows that already use x402 micropayments on Base or Solana. Ideal for one-off or low-volume minification tasks where spinning up a local library is overkill, or when operating in a sandboxed environment without access to code execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:04:52.304Z","isFirstParty":false,"canonicalSlug":"fastx402-json-minify-4a2a022b"}