{"uid":"cap_sBai634if4fp95i433jiu","slug":"humanmirror-fr-json-cleaner-idempotency-verifier-1a2c3907","name":"humanmirror.fr JSON Cleaner & Idempotency Verifier","description":"Clean and canonicalize JSON, then independently verify the output is stable and idempotent.","url":"https://humanmirror.fr/api/x402/clean-json/","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["input"],"properties":{"input":{"description":"JSON-serializable input for this deterministic outcome."},"options":{"type":"object","description":"Optional tool-specific options."},"criteria":{"type":"object","description":"Optional deterministic acceptance criteria."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_sR-9OTPl0AuNLwPQZlAwW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cleans and canonicalizes a JSON object, then independently verifies the output is stable and idempotent across repeated applications.","exampleAgentPrompt":"Can you clean and canonicalize this JSON object for me and confirm the result is stable no matter how many times you apply the process: {\"name\":\" Alice \",\"age\":30,\"tags\":[\"b\",\"a\"]}?","exampleUseCases":[{"title":"Normalize API response before storage","prompt":"I'm getting inconsistent JSON back from a third-party API — can you clean and canonicalize it so the fields are in a stable, predictable order before I save it to the database? Here's the raw payload: {\"status\":\"ok \",\"data\":{\"id\":42,\"name\":\" Bob\"}}."},{"title":"Verify idempotent ETL transformation","prompt":"I need to make sure my JSON transformation step in our data pipeline is idempotent — can you clean this JSON and then verify that running the cleaning process again produces exactly the same output? Input: {\"price\":\" 9.99\",\"currency\":\"USD \",\"items\":[\"c\",\"a\",\"b\"]}."},{"title":"Sanitize user-submitted JSON config","prompt":"A user submitted this configuration JSON and it looks messy with extra whitespace and inconsistent key ordering — can you clean and canonicalize it and confirm the result won't change if we clean it again? Here it is: {\"timeout \":30,\"retries\":3,\"mode\":\" strict\"}."}],"resultDescription":"A cleaned and canonicalized version of the input JSON object, structured to be stable and idempotent. The response also includes an independent verification confirming that re-applying the cleaning process to the output produces the same result, validating deterministic behavior.","failureModes":["Input is not a valid JSON-serializable object — returns validation error","Acceptance criteria provided cannot be satisfied by the cleaned output — returns criteria mismatch error","Input schema violations (missing required fields like 'input') — returns 400 bad request","Service unavailability or network timeout — returns 5xx error","Payment not processed — returns 402 payment required"],"whenToPreferThis":"Choose this endpoint when you need to not only clean and normalize a JSON object but also receive an independent idempotency guarantee — confirming the cleaning is deterministic and stable. Prefer it over generic JSON formatters when downstream systems require provably consistent, canonical JSON, or when building ETL pipelines, data quality checks, or audit trails where repeatability must be verified.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:34:02.390Z","isFirstParty":false}