JSON array rename keys

json-array-rename-keys · version 1.0.0 · JSON & JSONL · free, no key needed

Rename specific keys in each object in a JSON array.

Use when you need to: json array rename keys · remap json keys in array · rename json fields.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "array": [
    {
      "a": 1,
      "b": 2
    },
    {
      "a": 3,
      "c": 4
    }
  ],
  "mapping": {
    "a": "id",
    "b": "value"
  }
}

Response:

{
  "result": {
    "result": [
      {
        "id": 1,
        "value": 2
      },
      {
        "id": 3,
        "c": 4
      }
    ],
    "count": 2
  }
}

How to call it

MCP

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

{
  "id": "json-array-rename-keys",
  "version": "1.0.0",
  "input": {
    "array": [
      {
        "a": 1,
        "b": 2
      },
      {
        "a": 3,
        "c": 4
      }
    ],
    "mapping": {
      "a": "id",
      "b": "value"
    }
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/json-array-rename-keys/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"array":[{"a":1,"b":2},{"a":3,"c":4}],"mapping":{"a":"id","b":"value"}}'

The machine-readable contract is at /v1/tools/json-array-rename-keys/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.