{"uid":"cap_DbvV2inDZ95uPzxNeQvg0","slug":"json-array-diff-608f981d","name":"JSON Array Diff","description":"Structured deep diff of two JSON values (added/removed/changed by path). Send { a, b }.","url":"https://x402-services-production.up.railway.app/api/diff","method":"POST","headers":{},"bodySchema":{"type":"object","required":["a","b"],"properties":{"a":{"type":"object","description":"First JSON value"},"b":{"type":"object","description":"Second JSON value"}}},"responseSchema":null,"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_VWMyh4nCsDQj4xM1jOxaL","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 the difference between two JSON arrays, returning a structured diff of their contents","exampleAgentPrompt":"Compare these two JSON arrays and tell me what changed — the first is [1, 2, 3] and the second is [2, 3, 4].","exampleUseCases":[{"title":"Detect config changes between deployments","prompt":"I have two versions of my config array — the old one is [\"featureA\",\"featureB\",\"featureC\"] and the new one is [\"featureA\",\"featureC\",\"featureD\"] — can you diff them and tell me what was added or removed?"},{"title":"Track list membership changes over time","prompt":"Here are yesterday's active user IDs as an array and today's active user IDs as an array — diff them so I can see who joined and who dropped off."},{"title":"Validate data pipeline output consistency","prompt":"I ran the same pipeline twice and got two different output arrays — compare them and flag any discrepancies so I know if something broke."}],"resultDescription":"A structured diff indicating which elements were added, removed, or changed between the two input JSON arrays, enabling the caller to understand exactly what changed from array A to array B.","failureModes":["Missing 'a' or 'b' fields returns a validation error","Non-array values for 'a' or 'b' cause a schema error","Payment failure (402) if stablecoin payment is not attached or insufficient","Large arrays may time out or return partial results"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call JSON array diff without setting up accounts or API keys, and you want to settle in stablecoins (USDC/USDG) on-chain. It is ideal for lightweight, one-off comparisons in automated agent workflows where billing via x402 protocol is already in use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:53:21.947Z","isFirstParty":false}