Skip to content
Fourohtwo

fastx402.tools/json-patch-apply

Apply an RFC 6902 JSON Patch (add, remove, replace, move, copy, test) to a JSON document and return the result. A failing test or a bad path is reported, not half-applied.

BaseUnchecked
GEThttps://fastx402.tools/json-patch-apply

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://fastx402.tools/json-patch-apply?json=%7B%22name%22%3A%22fastx402%22%2C%22tools%22%3A51%7D&patch=%5B%7B%22op%22%3A%22replace%22%2C%22path%22%3A%22%2Ftools%22%2C%22value%22%3A104%7D%2C%7B%22op%22%3A%22add%22%2C%22path%22%3A%22%2Fchains%22%2C%22value%22%3A%5B%22base%22%2C%22solana%22%5D%7D%5D");
console.log(await res.json());

Example input

{
  "json": "{\"name\":\"fastx402\",\"tools\":51}",
  "patch": "[{\"op\":\"replace\",\"path\":\"/tools\",\"value\":104},{\"op\":\"add\",\"path\":\"/chains\",\"value\":[\"base\",\"solana\"]}]"
}

More from FastX402 Lab