81trust / 100

Skills Json Flatten

by Grokzilla x402 Micro Pay in Onchain & crypto

x402 APIPassing, checked 24 min ago

Deterministic nested JSON to flat path-value map. Arrays, custom separators, depth limits.

POST https://grokzilla.shop/api/skills/json-flatten

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
269 ms typical, 272 ms slowest 5%
Last check
24 min ago
Next check
in 3 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://grokzilla.shop/api/skills/json-flatten" \
  -H "content-type: application/json" \
  -d '{"data":{"a":{"b":1}}}'
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%2Fgrokzilla.shop%2Fapi%2Fskills%2Fjson-flatten
const res = await pay("https://grokzilla.shop/api/skills/json-flatten", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"data":{"a":{"b":1}}}),
});
console.log(await res.json());

Example input

{
  "data": {
    "a": {
      "b": 1
    }
  }
}

Example output

{
  "flat": {
    "a.b": 1
  },
  "ok": true,
  "skill": "json_flatten"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
24 min agoPassed402269 ms$0.006
4 h agoPassed402289 ms$0.006
7 h agoPassed402272 ms$0.006
12 h agoPassed402269 ms$0.006