{"uid":"cap_FbBviCAvDvUR3YeIzdNQ0","slug":"agent402-uk-json-diff-e1b087eb","name":"Agent402 UK JSON Diff","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/utils/json/diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"object","description":"Left value"},"b":{"type":"object","description":"Right value"}}},"responseSchema":{"type":"json","example":{"added":["y"],"equal":false,"changed":[{"to":2,"from":1,"path":"x"}],"removed":[]}},"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":"down","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_-5eS7hFtaUchE2fSeX3aA","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":"Computes a structural diff between two JSON objects, returning added, removed, and changed paths.","exampleAgentPrompt":"Compare these two JSON objects and tell me exactly what was added, removed, or changed — the 'before' is {\"status\":\"pending\",\"amount\":100} and the 'after' is {\"status\":\"complete\",\"amount\":100,\"receipt\":\"abc123\"}.","exampleUseCases":[{"title":"Mid-task agent state verification","prompt":"I need to check what changed in my agent's state between two steps — the state before was {\"task\":\"search\",\"results\":null,\"done\":false} and after it ran it's {\"task\":\"search\",\"results\":[\"a\",\"b\"],\"done\":true}. Can you diff those and tell me what paths were added or changed?"},{"title":"API response regression detection","prompt":"My API is returning a different shape than yesterday — can you compare yesterday's response {\"user\":{\"id\":1,\"role\":\"admin\"}} with today's {\"user\":{\"id\":1}} and show me what got removed?"},{"title":"Configuration drift detection","prompt":"I have two versions of a config object and I want to know exactly which keys drifted — the original is {\"timeout\":30,\"retries\":3,\"debug\":false} and the new one is {\"timeout\":60,\"retries\":3,\"verbose\":true}. What was added, removed, or changed?"}],"resultDescription":"A structured JSON diff report listing the paths that were added in B but not A, paths removed from A that are absent in B, and paths where values changed between A and B, enabling precise identification of structural mutations between two JSON states.","failureModes":["Non-object inputs (arrays or primitives instead of objects) may be rejected or produce unexpected results","Deeply nested or very large JSON objects may hit payload size limits","Malformed JSON syntax in either input will return a validation error","Missing 'a' or 'b' fields in the request body will cause an error"],"whenToPreferThis":"Use this endpoint when you need a fast, precise structural diff between two JSON objects without writing custom comparison logic — ideal for mid-task state comparison in agentic workflows, configuration drift detection, or API response regression checks. Prefer it over manual comparison or general-purpose code execution when you need a clean list of added/removed/changed paths in a single lightweight call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T10:28:34.675Z","isFirstParty":false}