Docs
NodesProcessing Nodes
Edit Page on GitHub

JSON To Array

Aggregates JSON objects into a JSON Array, supports nesting for 2D arrays.

jsonarrayaggregatorEasy0

JSON To Array

0
Flow
array
Flow
Not connectedFlow
jsons
0 connections
Array input — accepts multiple connections

Description

The JSON To Array node takes individual JSON objects or arrays as input and aggregates them into a single JSON array. This is particularly useful when you have multiple pieces of data that you want to combine into a structured format for further processing or output. The node also supports nesting, allowing you to create 2D arrays if needed.

Common Use Cases

  • Data Aggregation: When you have multiple JSON objects that represent related data (e.g., user information, product details, etc.) and you want to combine them into a single array for easier handling downstream in your workflow.
  • Preparing Data for Output: If you need to output a collection of items in a structured format (e.g., sending a list of results to an API or displaying them in a UI), you can use this node to format the data as a JSON array.
  • Creating Nested Structures: If your workflow requires a more complex data structure, such as an array of arrays (2D array), you can use this node to achieve that by feeding in arrays as inputs.

Inputs

The input connections this node accepts:

NameDescriptionTypeFlowThe flow of the workflowFlowjsonsJSON object or array to wrapJSON[]

Outputs

The output connections this node provides:

NameDescriptionTypeFlowThe Flow to triggerFlowarrayThe resulting array of JSON objectsJSON

Fields

The configurable fields this node provides:

NameDescriptionTypejsonsJSON objectsValue: []JSON[]

Last updated on