{"slug":"saylorinnovations-com-api-json-diff-3eaf15","title":"Compare two JSON documents","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/json/diff","category":"other","description":"Compare two JSON documents - every added, removed, changed or retyped path with old and new values, plus a summary count by operation","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":509,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"a":"{\"name\":\"x\",\"tags\":[1,2]}","b":"{\"name\":\"y\",\"tags\":[1],\"new\":true}"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"a":{"description":"First JSON document, up to 6000 characters","type":"string"},"b":{"description":"Second JSON document, up to 6000 characters","type":"string"}},"required":["a","b"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"by_op":{"description":"By op","properties":{"added":{"description":"Added keys","type":["number","null"]},"changed":{"description":"Changed values","type":["number","null"]},"removed":{"description":"Removed keys","type":["number","null"]}},"type":"object"},"changes":{"description":"Number of differences found","type":"number"},"diff":{"description":"Differences with path, operation and old and new values","items":{"properties":{"from":{"description":"Start of the range"},"op":{"description":"Operation performed"},"path":{"description":"JSONPath of the difference","type":["string","null"]},"to":{"description":"End of the range"}},"type":"object"},"type":"array"},"identical":{"description":"True when the documents are equal","type":"boolean"},"note":{"description":"Caveat or context for reading the result","type":"string"},"source":{"description":"Data source the values come from","type":"string"},"truncated":{"description":"True when the list was cut at the limit","type":"boolean"}},"required":["identical","changes","diff"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":509,"error":null}],"description_full":"Compare two JSON documents - every added, removed, changed or retyped path with old and new values, plus a summary count by operation","last_updated":"2026-10-20T14:48:03.459Z","schemes":["exact"]}