{"uid":"cap_H7j0hQExImpoO82mwSvFJ","slug":"uos-genesis-compact-json-5efc7607","name":"UOS Genesis compact_json","description":"UOS Genesis machine utility: compact_json","url":"https://genesis.palsus2023.workers.dev/v1/compact_json","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Valid JSON text to minify while preserving the underlying data structure."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object"}},"additionalProperties":true},"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_CLs1_h5LJU7ofUQaI1Gdj","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":"Compacts (minifies) a JSON payload by removing unnecessary whitespace and formatting","exampleAgentPrompt":"Can you compact this JSON for me — strip all the whitespace and indentation so it's a single dense line: { \"name\": \"Alice\", \"age\": 30, \"city\": \"New York\" }?","exampleUseCases":[{"title":"Minify JSON for API payload","prompt":"I need to minify this JSON before sending it as a request body — can you compact it into a single line with no extra spaces or newlines? Here it is: { \"user\": { \"id\": 42, \"role\": \"admin\" }, \"active\": true }"},{"title":"Reduce storage size of config file","prompt":"Take this pretty-printed config JSON and compact it so I can store it more efficiently — remove all the indentation and whitespace: { \"timeout\": 30, \"retries\": 3, \"debug\": false }"},{"title":"Prepare JSON for embedding in URL param","prompt":"I need to pass this JSON object as a URL query parameter and it needs to be as compact as possible — please strip all formatting and whitespace from it: { \"filter\": \"active\", \"limit\": 100 }"}],"resultDescription":"Returns the input JSON as a compacted single-line string with all unnecessary whitespace, newlines, and indentation removed, preserving the original data structure and values exactly.","failureModes":["Invalid or malformed JSON input returns an error response","Empty input may return an error or empty result","Very large JSON payloads may hit size limits","Non-JSON content type or encoding issues may cause parsing failures"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable JSON minification utility with a predictable per-call cost and no setup. Prefer it over client-side minification when operating in agent pipelines where local code execution is unavailable, or when you need a consistent, auditable transformation step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:39:03.246Z","isFirstParty":false}