{"uid":"cap_OwtHXFTE7q8KwpAUXcbg_","slug":"agent402-tools-json-diff-dda4483a","name":"agent402.tools JSON Diff","description":"Deep-compare two JSON values. Returns a list of changed/added/removed paths (capped at 1000 differences).","url":"https://agent402.tools/api/json-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"description":"First JSON value"},"b":{"description":"Second JSON value"}}},"responseSchema":{"type":"json","example":{"equal":false,"differences":[{"a":2,"b":3,"path":"y","type":"changed"},{"b":4,"path":"z","type":"added"}]}},"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_RaOUxX2oJbiGEmjh2U13m","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":"Deep-compares two JSON values and returns a list of all changed, added, and removed paths (capped at 1000 differences).","exampleAgentPrompt":"Compare these two JSON objects and tell me every path that was added, removed, or changed: {\"name\":\"Alice\",\"age\":30,\"city\":\"Boston\"} vs {\"name\":\"Alice\",\"age\":31,\"country\":\"USA\"}.","exampleUseCases":null,"resultDescription":"A list of up to 1000 difference entries, each describing a path in the JSON structure along with whether it was changed, added, or removed, enabling precise identification of structural and value-level changes between two JSON documents.","failureModes":["Invalid or malformed JSON in field 'a' or 'b' results in a parse error response","Missing 'a' or 'b' fields in the request body returns a validation error","More than 1000 differences exist — only the first 1000 are returned, remainder silently truncated","Payment not provided or insufficient USDC results in a 402 Payment Required response","Extremely large or deeply nested JSON may cause timeout or memory errors"],"whenToPreferThis":"Choose this endpoint when you need a precise, path-level diff between two arbitrary JSON values — especially when comparing API responses, configuration snapshots, or data migration outputs. It's ideal for agents that need a structured list of changes rather than a boolean equality check, and when the two JSON documents may differ in more than one place.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.138Z","isFirstParty":false}