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.
Decide before calling
Read the versioned contract and the supported scope below. Reuse json-array-concat@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.
Explain the choice
"I can use json-array-concat@1.0.0 for json array concat. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."
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 three way merge: Merge base, left and right JSON arrays, returning deterministic output and explicit conflicting edit regions.
- JSON array align: Align two JSON arrays with duplicate-safe occurrence pairs and deterministic LCS tie-breaking.
- 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.
- JSON keyed array merge: Three-way merge JSON arrays by a JSON Pointer key, returning edits, moves, inserts, deletes, and conflicts.