JSON array left join

json-array-left-join · version 1.0.0 · JSON & JSONL · free, no key needed

Left join two JSON arrays of objects on exact keys.

Use when you need to: json array left join · left join json arrays · left join json objects on keys.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "left": [
    {
      "id": 1,
      "name": "Alice"
    },
    {
      "id": 2,
      "name": "Bob"
    }
  ],
  "right": [
    {
      "id": 1,
      "role": "Admin"
    }
  ],
  "keys": [
    "id"
  ]
}

Response:

{
  "result": {
    "result": [
      {
        "id": 1,
        "name": "Alice",
        "role": "Admin"
      },
      {
        "id": 2,
        "name": "Bob"
      }
    ],
    "count": 2
  }
}

How to call it

MCP

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

{
  "id": "json-array-left-join",
  "version": "1.0.0",
  "input": {
    "left": [
      {
        "id": 1,
        "name": "Alice"
      },
      {
        "id": 2,
        "name": "Bob"
      }
    ],
    "right": [
      {
        "id": 1,
        "role": "Admin"
      }
    ],
    "keys": [
      "id"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/json-array-left-join/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"left":[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}],"right":[{"id":1,"role":"Admin"}],"keys":["id"]}'

The machine-readable contract is at /v1/tools/json-array-left-join/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.