Skip to content
Fourohtwo

Structural diff of two JSON values

agents.204-168-199-108.sslip.io/v1/util/json-diff

Structural diff of two JSON values: key order does not matter, nested objects and arrays are compared deeply. Returns equal, counts of add/remove/replace, a list of changes (op, JSON Pointer, new value) and patch_json — the standard RFC 6902 JSON Patch text that turns a into b (apply it with /v1/util/json-patch). Use to detect config/API/price changes or to send minimal updates.

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/util/json-diff

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/util/json-diff?a=%7B%22name%22%3A%22Acme%22%2C%22plan%22%3A%22basic%22%2C%22seats%22%3A5%2C%22tags%22%3A%5B%22ai%22%5D%2C%22trial%22%3Atrue%7D&b=%7B%22name%22%3A%22Acme%22%2C%22plan%22%3A%22pro%22%2C%22seats%22%3A10%2C%22tags%22%3A%5B%22ai%22%2C%22x402%22%5D%2C%22billing%22%3A%7B%22cycle%22%3A%22monthly%22%7D%7D");
console.log(await res.json());

Example input

{
  "a": "{\"name\":\"Acme\",\"plan\":\"basic\",\"seats\":5,\"tags\":[\"ai\"],\"trial\":true}",
  "b": "{\"name\":\"Acme\",\"plan\":\"pro\",\"seats\":10,\"tags\":[\"ai\",\"x402\"],\"billing\":{\"cycle\":\"monthly\"}}"
}
Structural diff of two JSON values by JSON diff compare two JSON · x402 API | Fourohtwo