{"uid":"cap_MyTjC4G_V0RM9ez-cNcyp","slug":"agent-utility-network-json-minify-2a2c6f6e","name":"Agent Utility Network – JSON Minify","description":"Quality-scored paid utility APIs for AI agents over x402 on Base USDC.","url":"https://agent-utility-network.frosty-sound-4560.workers.dev/v1/paid/json-minify","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":100000,"minLength":1}}},"responseSchema":{"type":"json","example":{"result":{"minified":"{\"a\":1}"}}},"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_3XvrmnSRKmb6_l0v7mR4x","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":"Strips whitespace and comments from a JSON string, returning a compact minified version.","exampleAgentPrompt":"Can you minify this JSON for me so it's all on one line with no extra whitespace? Here it is: { \"name\": \"Alice\", \"age\": 30, \"city\": \"New York\" }","exampleUseCases":[{"title":"Compact config before embedding","prompt":"I need to inline this JSON config into an environment variable but it's too long with all the formatting — strip out all the whitespace so it's a single compact line: { \"host\": \"db.example.com\", \"port\": 5432, \"ssl\": true, \"timeout\": 30 }"},{"title":"Reduce payload size before sending","prompt":"Before I send this API request body, can you minify the JSON to make it as small as possible? Here's the pretty-printed version: { \"user\": { \"id\": 42, \"role\": \"admin\" }, \"action\": \"login\", \"timestamp\": \"2024-01-15T10:00:00Z\" }"},{"title":"Normalize developer-generated JSON output","prompt":"Our logging pipeline keeps breaking because the JSON objects have inconsistent indentation and newlines — can you minify this JSON snippet into a clean single-line format? { \"event\": \"purchase\",   \"amount\": 99.99,\n  \"currency\": \"USD\" }"}],"resultDescription":"Returns a JSON object with a `result` field containing a `minified` string — the original JSON input compacted to remove all unnecessary whitespace, newlines, and indentation, e.g. `{\"a\":1}`.","failureModes":["Invalid JSON input returns an error — the input must be well-formed JSON","Input exceeding 100,000 characters is rejected due to maxLength constraint","Empty string input is rejected due to minLength:1 constraint","Payment failure via x402 / insufficient USDC balance results in a 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable, pay-per-use JSON minification with no rate-limit subscriptions or API key management — ideal for AI agents operating autonomously with micropayment budgets on Base USDC via x402. Prefer it over rolling your own string manipulation when you need guaranteed correctness on arbitrary JSON.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:40:15.055Z","isFirstParty":false}