JSON array concat
json-array-concat · version 1.0.0 · JSON & JSONL · free, no key needed
Concatenate multiple JSON arrays of objects into one.
Use when you need to: json array concat · concatenate json arrays · combine json arrays.
Supported
- json array concat
- concatenate json arrays
- combine json arrays
Not supported
- deep merging
Behavior
- Appends all objects from the provided arrays in sequence.
- Returns a new array containing copies of all objects.
Input
arrays(array of array of object, required): max items 32; each max items 10000
Output
result(array of object, required)count(integer, required)
Limits
- max arrays: 32
- max output items: 10000
Example
Request input:
{
"arrays": [
[
{
"a": 1
}
],
[
{
"b": 2
}
],
[
{
"c": 3
}
]
]
}
Response:
{
"result": {
"result": [
{
"a": 1
},
{
"b": 2
},
{
"c": 3
}
],
"count": 3
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "json-array-concat",
"version": "1.0.0",
"input": {
"arrays": [
[
{
"a": 1
}
],
[
{
"b": 2
}
],
[
{
"c": 3
}
]
]
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/json-array-concat/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"arrays":[[{"a":1}],[{"b":2}],[{"c":3}]]}'
The machine-readable contract is at /v1/tools/json-array-concat/versions/1.0.0.
CLI
node cli.mjs run json-array-concat 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- JSON array anti join: Anti join two JSON arrays of objects on exact keys.
- JSON array inner join: Inner join two JSON arrays of objects on exact keys.
- JSON array left join: Left join two JSON arrays of objects on exact keys.
- Array to JSONL: Serialize an array of JSON-safe values as JSON Lines text.
- JSON array count: Count structural occurrences in a JSON array in first-seen order.
- JSON array distinct by: Deduplicate a JSON array of objects based on specific keys.