{"uid":"cap_GkyQSR9-8hgcvzVqPTj6H","slug":"json-diff-comparator-3ed9cf87","name":"JSON Diff Comparator","description":"Compare two JSON values and return structured changed, added and removed paths.","url":"https://x402-zoo.lolagent.workers.dev/api/json-diff","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":["left","right"],"properties":{"left":{"type":"string"},"right":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PwBf4c-B0bwUKs4nvA2Qa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two JSON values and returns structured lists of changed, added, and removed paths between them.","exampleAgentPrompt":"Can you compare these two JSON objects for me and tell me exactly which fields were added, removed, or changed? Left: {\"name\":\"Alice\",\"age\":30,\"city\":\"NY\"} and right: {\"name\":\"Alice\",\"age\":31,\"country\":\"US\"}.","exampleUseCases":[{"title":"Detect config drift between deploys","prompt":"Compare these two deployment config JSONs and show me what changed, what was added, and what was removed between version 1 and version 2."},{"title":"Audit API response changes","prompt":"I have two API responses from yesterday and today — can you diff them and tell me which JSON fields changed, which were added, and which disappeared?"},{"title":"Validate data migration output","prompt":"I migrated some records and need to check what changed — compare the original JSON object to the migrated one and list every path that's different, added, or removed."}],"resultDescription":"A structured object containing three categorized lists: paths where values changed (with before/after values), paths that were added in the right-side JSON, and paths that were removed relative to the left-side JSON.","failureModes":["Malformed JSON in left or right query parameter returns an error","Missing required query parameters (left or right) results in a bad request response","Deeply nested or very large JSON objects may exceed processing limits","URL-encoding issues with special characters in JSON strings can cause parse failures"],"whenToPreferThis":"Choose this endpoint when you need a fast, structured programmatic diff of two JSON values that returns machine-readable changed/added/removed path lists rather than a human-readable text diff. Ideal for automated pipelines, configuration drift detection, or API response auditing where the output must be parsed downstream.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:48:35.198Z","isFirstParty":false}