{"uid":"cap_uB70JNNc8wEErc07gfPwZ","slug":"json-structural-diff-de9cc400","name":"JSON Structural Diff","description":"Structural difference between two JSON values — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/json-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"a":{},"b":{}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"json-diff","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.003,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"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_eoKzTP3yhI61kyAjaz3dN","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 structural difference between two arbitrary JSON values, returning a diff result","exampleAgentPrompt":"Can you compare these two JSON objects and show me what structurally changed between them? Here's the old one: {\"name\":\"Alice\",\"age\":30} and the new one: {\"name\":\"Alice\",\"age\":31,\"city\":\"NYC\"}.","exampleUseCases":[{"title":"Detect API response drift","prompt":"I have two versions of a JSON response from our payment API — the one from yesterday and the one from today — can you diff them and tell me what fields were added, removed, or changed?"},{"title":"Config change auditing","prompt":"Compare these two JSON config files for me: the one we deployed last week versus the current one, and show me exactly what's structurally different between them."},{"title":"Debugging data pipeline mutations","prompt":"My data pipeline is transforming a JSON record and I want to see exactly what the transformation changed — here's the input JSON and the output JSON, can you show me the structural diff?"}],"resultDescription":"Returns a JSON object with ok: true, a type field of 'json-diff', a generated_at ISO 8601 timestamp, a receipt object containing transaction hash, amount in USD, and receipt ID, and the computed structural difference between the two input JSON values.","failureModes":["Missing or malformed params.a or params.b fields returns an error","Non-JSON-parseable inputs may cause processing failure","Payment failure or insufficient funds results in HTTP 402 response","Large or deeply nested JSON values may time out or be rejected","Network errors to twin.unykorn.org return connection failures"],"whenToPreferThis":"Choose this endpoint when you need a paid, on-demand structural JSON diff as part of an automated agent workflow, particularly in x402 payment-enabled pipelines. It is well-suited for comparing arbitrary JSON values without setting up your own diff library, and works well for agentic tasks that require auditing, change detection, or validation of JSON transformations in a single API call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:44.341Z","isFirstParty":false,"canonicalSlug":"json-structural-diff-de9cc400"}