{"uid":"cap_ZsA_lMB0bulnMWkWPIuDC","slug":"cheap-utilities-json-diff-40304839","name":"Cheap Utilities JSON Diff","description":"Structural diff of two JSON documents: added, removed, changed and type-changed paths, arrays compared by index.","url":"https://cheap-utilities.x402tookit.com/json-diff?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"],"type":"string"},"queryParams":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","description":"First JSON document (up to 3000 characters)"},"b":{"type":"string","description":"Second JSON document"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"changes":{"type":["array","null"],"items":{"type":"object","properties":{"to":{"type":["null","number"]},"from":{"type":["null","number"]},"path":{"type":["null","string"]},"change":{"type":["null","string"]}}}},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"differences":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9EvXsQshfQH321JLhTaQR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 of two JSON documents, reporting added, removed, changed, and type-changed paths with array comparison by index.","exampleAgentPrompt":"Can you diff these two JSON documents for me and tell me exactly what was added, removed, or changed? Here's the first one: {\"name\":\"Alice\",\"age\":30,\"role\":\"admin\"} and the second one: {\"name\":\"Alice\",\"age\":31,\"role\":\"user\",\"email\":\"alice@example.com\"}","exampleUseCases":[{"title":"Detecting API response changes","prompt":"I have two versions of an API response — can you compare them and tell me which fields were added, removed, or had their values or types changed? First doc: {\"status\":\"ok\",\"count\":5,\"items\":[1,2,3]} and second doc: {\"status\":\"ok\",\"count\":6,\"items\":[1,2,3,4],\"page\":1}"},{"title":"Config drift detection","prompt":"Here are two JSON config files from our staging and production environments — can you diff them and show me every path that differs, including any type changes? Staging: {\"timeout\":30,\"retries\":3,\"debug\":true} and Production: {\"timeout\":60,\"retries\":3,\"debug\":false,\"logLevel\":\"warn\"}"},{"title":"Auditing JSON schema migration","prompt":"We migrated our user object schema last week. Can you compare the old and new JSON shapes and list every field that was added, removed, or changed type? Old: {\"id\":\"abc\",\"name\":\"Bob\",\"active\":1} and New: {\"id\":\"abc\",\"name\":\"Bob\",\"active\":true,\"createdAt\":\"2024-01-01\"}"}],"resultDescription":"Returns a structured diff containing a list of changed paths, each annotated with the type of change (added, removed, changed, type-changed), the old and new values, a summary of total differences, and optional metadata like source and timestamp.","failureModes":["Invalid JSON in parameter 'a' or 'b' returns an error — inputs must be valid JSON strings","Input exceeding 3000 characters for document 'a' may be rejected or truncated","Missing required query parameters 'a' or 'b' returns a validation error","Extremely deeply nested JSON may hit processing limits"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, path-level structural diff of two JSON documents without setting up a local library or running code. It is ideal for agents comparing API responses, config files, or data snapshots where you want a clear enumeration of added, removed, changed, and type-changed paths. It is not suitable for semantic JSON comparison, merging, or diffing very large documents over 3000 characters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:15:03.246Z","isFirstParty":false,"canonicalSlug":"cheap-utilities-json-diff-40304839"}