Skip to content
Fourohtwo

code.halowerk.com/v1/jq-run

Apply a jq filter to a JSON document and get all output values back, executed by jq 1.7 in a separate process without environment. Runs the official jq 1.7 binary as a child process with an empty environment, no file arguments, a 512 MB memory cap, 3 s CPU limit and 1 MB output limit; module imports (import/include) are rejected so no local files can be read. Returns every value the filter emits a

BaseAnswering
POSThttps://code.halowerk.com/v1/jq-run

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

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://code.halowerk.com/v1/jq-run", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"filter":".items[] | select(.price > 10) | .name","input":{"items":[{"name":"A","price":5},{"name":"B","price":12}]}}),
});
console.log(await res.json());

Example input

{
  "filter": ".items[] | select(.price > 10) | .name",
  "input": {
    "items": [
      {
        "name": "A",
        "price": 5
      },
      {
        "name": "B",
        "price": 12
      }
    ]
  }
}