{"uid":"cap_-y0kNJfMSbpv3k1lMqe45","slug":"agentdiet-json-normalizer-f59d2327","name":"AgentDiet JSON Normalizer","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/json-normalizer?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","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"raw_json":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WY9HoP7XAWFWPUoPg8S6o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and compresses raw JSON input, stripping bloat to reduce token usage in AI agent context windows","exampleAgentPrompt":"Can you normalize and compress this raw JSON for me so it takes up fewer tokens in my context window? Here's the JSON: {\"user\":{\"id\":123,\"name\":\"Alice\",\"metadata\":{\"unused\":null,\"verbose\":\"padding padding padding\"}}}","exampleUseCases":[{"title":"Trim bloated API response for LLM","prompt":"I just got a huge JSON response from a third-party API and I need to feed it into my LLM prompt — can you normalize and compress it so it doesn't eat up my whole context window?"},{"title":"Clean up agent pipeline data","prompt":"My agent pipeline keeps hitting token limits because intermediate JSON payloads are so verbose. Can you run this JSON through the normalizer to strip the bloat before the next step?"},{"title":"Reduce RAG retrieval payload size","prompt":"I'm building a RAG system and the retrieved chunks come back as messy, over-padded JSON. Can you normalize this JSON and tell me how much compression I got so I can keep my retrieval chunks lean?"}],"resultDescription":"Returns a normalized, de-bloated JSON object under the 'data' key, a status field ('ok'), and an roi_proof object containing the compression_ratio_pct — e.g. 91.4% — showing how much token bloat was removed","failureModes":["Invalid or malformed JSON input returns an error status","Missing required 'input' field causes schema validation failure","Unsupported HTTP method (not GET or POST) causes rejection","Empty or null raw_json query parameter may return an empty data object","Payment failure via x402/USDC on Base may block the call"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, deterministic, pay-per-call JSON normalization service that's optimized for AI agent workflows — particularly when token cost reduction or context window management is a priority. Best suited for A2A/MCP pipelines where JSON payloads are verbose and you need a measurable compression ratio as proof of ROI.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:20.743Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-normalizer-f59d2327"}