Skip to content
Fourohtwo

JSON diff as an RFC 6902 patch

mpp-tools.fmf-x402.workers.dev/mpp/data/json-diff

JSON diff as an RFC 6902 patch — Structural diff of two JSON documents (up to 1 MB each): RFC 6902 JSON Patch operations (add / remove / replace with JSON Pointer paths) that turn a into b, optional old values, and counts. Arrays compared by index. Free sample: add ?sample=1. Price $0.0005. A call with no input uses the documented defaults.

BaseAnswering
GEThttps://mpp-tools.fmf-x402.workers.dev/mpp/data/json-diff

Uptime100% of 4 checks 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://mpp-tools.fmf-x402.workers.dev/mpp/data/json-diff?a=%7B%22name%22%3A%22widget%22%2C%22price%22%3A10%2C%22tags%22%3A%5B%22a%22%2C%22b%22%5D%7D&b=%7B%22name%22%3A%22widget%22%2C%22price%22%3A12%2C%22tags%22%3A%5B%22a%22%5D%2C%22stock%22%3A5%7D");
console.log(await res.json());

Example input

{
  "a": "{\"name\":\"widget\",\"price\":10,\"tags\":[\"a\",\"b\"]}",
  "b": "{\"name\":\"widget\",\"price\":12,\"tags\":[\"a\"],\"stock\":5}"
}

More from FMF Tools mpp-toolsProvider status