{"uid":"cap_UL_j9feilnRHiFj31nlu6","slug":"strale-json-diff-4677db02","name":"Strale JSON Diff","description":"Compare two JSON objects and return structured diff. Shows added, removed, and changed fields with paths and values. Algorithmic.","url":"https://api.strale.io/x402/v2/diff-json?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["before","after"],"properties":{"after":{"description":"Modified JSON"},"before":{"description":"Original JSON"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"const":"json"},"example":{"type":"object","properties":{"added":{"type":"array"},"changed":{"type":"array"},"removed":{"type":"array"},"identical":{"type":"boolean"}}}}}}},"responseSchema":{"added":{"type":"array"},"changed":{"type":"array"},"removed":{"type":"array"},"identical":{"type":"boolean"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0324","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.0324/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4QXII8TJaxd2X57AqOUBE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0324","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compute a structured diff between two JSON objects, returning a detailed change record of added, removed, and modified fields.","exampleAgentPrompt":"Compare these two JSON objects and tell me exactly what changed — which fields were added, removed, or modified between the old version and the new one.","exampleUseCases":[{"title":"Track API response schema changes","prompt":"I have two versions of an API response — the one from yesterday and today's. Can you diff them and tell me exactly which fields appeared, disappeared, or changed values?"},{"title":"Audit config file mutations","prompt":"Here are the JSON configs before and after the last deployment. Show me a structured diff so I can see precisely what settings were modified."},{"title":"Validate data pipeline transformations","prompt":"I want to verify that my ETL pipeline only changed the fields it was supposed to — can you compare this input JSON and output JSON and flag any unexpected differences?"}],"resultDescription":"Returns a structured diff object listing added, removed, and modified fields between two JSON inputs, along with an audit record containing a cryptographic chain hash for tamper-evident traceability.","failureModes":["Malformed JSON input returns a parse error","Missing required input fields returns a 400 validation error","Very large or deeply nested JSON may exceed size limits","Network or payment failure returns a 402 or 5xx status","Identical JSON objects return an empty diff with no changes listed"],"whenToPreferThis":"Choose this endpoint when you need a machine-readable, auditable diff of two JSON objects with cryptographic chain hashing for compliance or trust purposes — especially in agentic pipelines where tamper-evident audit trails matter. Prefer it over ad-hoc diffing libraries when you need structured output with provenance guarantees across 27 countries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T12:41:12.625Z","isFirstParty":false,"canonicalSlug":"strale-json-diff-4677db02"}