80trust / 100

Json Diff

by Forest Agent Tools in AI models & inference

x402 APIPassing, checked 3 h ago

Deep-compare two caller-supplied JSON values with deterministic object-key ordering and explicit index-based array semantics. Returns bounded added, removed and changed paths with primitive before/after values when safe; performs no network request, model inference, persistence or mutation. Base mainnet USDC

POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/json/diff

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
118 ms typical, 160 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/json/diff" \
  -H "content-type: application/json" \
  -d '{"after":{"retries":1,"status":"ready"},"before":{"retries":0,"status":"queued"}}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhttp--forest-gas-station-mainnet--lcjl27p8lmjs.code.run%2Fjson%2Fdiff
const res = await pay("https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/json/diff", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"after":{"retries":1,"status":"ready"},"before":{"retries":0,"status":"queued"}}),
});
console.log(await res.json());

Example input

{
  "after": {
    "retries": 1,
    "status": "ready"
  },
  "before": {
    "retries": 0,
    "status": "queued"
  }
}

Example output

{
  "capability": "json.diff",
  "data": {
    "array_semantics": "index_based",
    "difference_count": 0,
    "differences": [],
    "equal": false,
    "input_bytes": 0,
    "nodes_visited": 0,
    "scope": "caller_supplied_json_structural_diff_only",
    "truncated": false
  },
  "meta": {
    "cache": "miss",
    "checked_at": "2026-01-01T00:00:00.000Z",
    "duration_ms": 0,
    "provider": "local-json"
  },
  "ok": true,
  "version": "1"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402118 ms$0.001
6 h agoPassed40240 ms$0.001
10 h agoPassed40238 ms$0.001
14 h agoPassed402150 ms$0.001
17 h agoPassed40242 ms$0.001
22 h agoPassed402160 ms$0.001
25 h agoPassed40239 ms$0.001
28 h agoPassed402157 ms$0.001
33 h agoPassed402207 ms$0.001