{"uid":"cap_Eydcj0WvDY6F-9wuPIZGF","slug":"swift-bot-labs-toolbox-json-diff-4dba2007","name":"Swift Bot Labs Toolbox – JSON Diff","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/json/diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"description":"Original (a JSON value, or a string containing JSON)"},"b":{"description":"Changed (a JSON value, or a string containing JSON)"}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"json-diff","result":{"count":2,"equal":false,"operations":[{"op":"add","path":"/tags/1","value":"b"},{"op":"replace","old":1,"path":"/v","value":2}]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qSDhzXW52UueF5Xwos8RW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a JSON diff (RFC 6902-style patch operations) between two JSON values, returning the list of add/replace/remove operations and whether the values are equal.","exampleAgentPrompt":"Compare these two JSON objects and tell me exactly what changed — the original is {\"v\":1,\"tags\":[\"a\"]} and the updated version is {\"v\":2,\"tags\":[\"a\",\"b\"]}.","exampleUseCases":[{"title":"Audit API response changes","prompt":"I have two versions of an API response — the one from yesterday: {\"status\":\"active\",\"limit\":100} and today's: {\"status\":\"active\",\"limit\":200,\"tier\":\"pro\"} — can you diff them and tell me exactly what changed?"},{"title":"Config file change detection","prompt":"Before deploying, can you compare my old config {\"debug\":false,\"workers\":2} with the new one {\"debug\":true,\"workers\":4,\"region\":\"us-east\"} and list every modification?"},{"title":"CI pipeline JSON schema validation","prompt":"In my CI pipeline I want to check whether the generated output JSON {\"build\":\"abc\",\"passed\":true} differs from the expected baseline {\"build\":\"abc\",\"passed\":true} — are they identical or is anything different?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean, the tool name 'json-diff', and a 'result' object containing: 'count' (number of diff operations), 'equal' (boolean indicating whether the two inputs are identical), and 'operations' (array of JSON Patch-style objects each with 'op', 'path', and optionally 'value' and 'old' fields).","failureModes":["Invalid JSON input in 'a' or 'b' fields returns an error response","Missing required fields 'a' or 'b' causes a 400-level error","Payment not provided or insufficient USDC causes an HTTP 402 response requiring x402 payment","Very large JSON payloads may hit Cloudflare Workers size limits","Malformed JSON strings passed as the 'a' or 'b' values (when string-encoded) may fail parsing"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable diff of two JSON values — especially when you want RFC 6902-style patch operations (add/replace/remove with explicit paths) rather than a visual or textual diff. It is ideal for agents that need to programmatically process change sets, audit configuration drift, or validate that a transformation produced the expected output. Being pay-per-call with no account setup, it suits ephemeral agent workflows where spinning up a dedicated diff service is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:37.435Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-json-diff-4dba2007"}