{"uid":"cap_72ez5_ok7ZAzQWGeTHZC5","slug":"json-structural-diff-2177b596","name":"JSON Structural Diff","description":"Structural diff of two JSON documents; returns added / removed / changed paths (JSONPath-style) as a patch, plus an equal flag. Ideal for config drift.","url":"https://api.24klabs.ai/api/v1/json-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"object"},"b":{"type":"object"}}},"responseSchema":{"type":"json","example":{"equal":false,"changed":[{"to":3,"from":2,"path":"replicas"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-HR1X1R251Qb12ZxUpjMo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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 between two JSON documents, returning added/removed/changed paths in JSONPath-style patch format plus an equality flag.","exampleAgentPrompt":"Compare these two JSON configs and tell me exactly which fields were added, removed, or changed — and whether they're equal overall.","exampleUseCases":[{"title":"Config drift detection in CI/CD","prompt":"I deployed a new version of my service and I want to know exactly what changed in the config JSON between the old and new deployments — show me every added, removed, or modified path."},{"title":"API response regression check","prompt":"I have two versions of an API response JSON from before and after a backend change — diff them and tell me which fields differ and whether the documents are structurally equal."},{"title":"Infrastructure-as-code change audit","prompt":"Here are the old and new Terraform state JSON blobs — compare them and give me a JSONPath-style list of everything that was added, removed, or changed."}],"resultDescription":"Returns a patch object listing all added, removed, and changed paths in JSONPath-style notation, along with an 'equal' boolean flag indicating whether the two documents are structurally identical.","failureModes":["Invalid JSON input returns a parse error","Malformed request body results in a 400 error","Extremely large JSON documents may cause timeout or size limit errors","Missing either document in the request body returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable diff of two JSON documents with JSONPath-style paths — especially for config drift detection, API response regression testing, or automated auditing pipelines. Prefer it over text-based diff tools when the semantic structure of JSON (keys, nesting) matters more than line-by-line text changes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:45.611Z","isFirstParty":false}