JSON array filter equals

json-array-filter-equals · version 1.0.0 · JSON & JSONL · free, no key needed

Filter JSON array objects where a key equals a specific value.

Use when you need to: json array filter equals · filter json array · select json objects by value.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "array": [
    {
      "id": 1,
      "active": true
    },
    {
      "id": 2,
      "active": false
    },
    {
      "id": 3,
      "active": true
    }
  ],
  "key": "active",
  "value": true
}

Response:

{
  "result": {
    "result": [
      {
        "id": 1,
        "active": true
      },
      {
        "id": 3,
        "active": true
      }
    ],
    "count": 2
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "json-array-filter-equals",
  "version": "1.0.0",
  "input": {
    "array": [
      {
        "id": 1,
        "active": true
      },
      {
        "id": 2,
        "active": false
      },
      {
        "id": 3,
        "active": true
      }
    ],
    "key": "active",
    "value": true
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/json-array-filter-equals/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"array":[{"id":1,"active":true},{"id":2,"active":false},{"id":3,"active":true}],"key":"active","value":true}'

The machine-readable contract is at /v1/tools/json-array-filter-equals/versions/1.0.0.

CLI

node cli.mjs run json-array-filter-equals 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.