{"uid":"cap_P4fYe6-fBLAwF2xjeRnvY","slug":"utilsforagents-com-b8a7d052","name":"utilsforagents.com JSON Diff","description":"Pay-per-call AI agent utilities plus a free feedback endpoint: JSON diff, EXIF extraction, metadata scrubbing, HTML-to-Markdown, URL fetching, and feature-request collection. $0.003/call for paid utility routes via x402 on Base or Solana.","url":"https://utilsforagents.com/v1/diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"left":{"type":"object","description":"Original JSON value"},"right":{"type":"object","description":"Modified JSON value"},"options":{"type":"object","properties":{"maxDepth":{"type":"number","description":"Maximum object depth to traverse (1-256)"},"includeUnchanged":{"type":"boolean","description":"Include unchanged paths in output"}},"description":"Optional diff settings"}}},"responseSchema":{"type":"json","example":{"ok":true,"diff":[{"op":"replace","path":"/name","newValue":"Bob","oldValue":"Alice"}],"stats":{"added":0,"changed":1,"removed":0,"unchanged":0,"processingTimeMs":0.042}}},"example":{"request":{"left":{"tags":["test","demo"],"count":5,"status":"active"},"right":{"tags":["test","demo","updated"],"count":5,"status":"inactive"},"options":{"maxDepth":32,"includeUnchanged":true}},"response":{"ok":true,"diff":[{"op":"add","path":"/tags/2","value":"updated"},{"op":"replace","path":"/status","newValue":"inactive","oldValue":"active"}],"stats":{"added":1,"changed":1,"removed":0,"unchanged":3,"processingTimeMs":0}}},"exampleRequest":{"left":{"tags":["test","demo"],"count":5,"status":"active"},"right":{"tags":["test","demo","updated"],"count":5,"status":"inactive"},"options":{"maxDepth":32,"includeUnchanged":true}},"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_j9jBdcwkqZrHY92d-IoAM","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":"Compare two JSON objects or arrays and return a structured list of differences as RFC 6902-style patch operations with JSON Pointer paths.","exampleAgentPrompt":"Compare these two JSON objects and show me exactly what changed — the original is {\"age\":30,\"city\":\"New York\",\"name\":\"Alice\"} and the updated version is {\"age\":31,\"city\":\"Boston\",\"name\":\"Alice\"}, including any unchanged fields.","exampleUseCases":[{"title":"Config drift detection between deployments","prompt":"I need to see what settings changed in our production config between this morning's deploy and now. Here's the old config and the new one — can you break down exactly which fields were added, removed, or modified so I can audit what happened?"},{"title":"API response change tracking for monitoring","prompt":"We're getting different data back from the customer API than we did yesterday. Can you compare these two response payloads and tell me which fields got updated, which are new, and which disappeared — I need to know if this is expected?"},{"title":"Database record update auditing","prompt":"Show me all the differences between the customer record we had yesterday and what it looks like today. I need the exact changes with paths so I can log them for compliance — what fields were touched and what were the old versus new values?"}],"resultDescription":"Returns an 'ok' boolean, a 'diff' array of RFC 6902-style patch operations (each with 'op' as add/remove/replace, 'path' as a JSON Pointer string, and 'oldValue'/'newValue' where applicable), plus a 'stats' object with counts of added, removed, changed, and unchanged fields and processing time in milliseconds.","failureModes":["Invalid JSON in left or right fields returns a 400-level error","maxDepth value outside 1–256 range causes a validation error","Extremely large or deeply nested JSON may hit depth limits if maxDepth is too low","Non-object/non-array top-level JSON values may produce unexpected results","Missing left or right field in request body returns an error"],"whenToPreferThis":"Use this endpoint when you need a structured, machine-readable diff of two JSON documents — especially when you need RFC 6902 patch operations with JSON Pointer paths for audit logging, change detection, config comparison, or reconstructing state transitions. Prefer this over text-based diff tools when working with structured data where field-level granularity and JSON Pointer paths matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:43:06.904Z","isFirstParty":false,"canonicalSlug":"utilsforagents-com-b8a7d052"}