Infoveave Data Automation — Pivot & Transpose
Two parallel JSON array columns — each describing a different dimension at the same index — merge into one structured array of combined objects in a single step.
Some APIs return related multi-dimensional data as separate parallel arrays in the same response — one array for project mix percentages, another for sales mix percentages, each with elements at the same index representing the same time period or category. Working with these arrays separately makes cross-dimension analysis difficult. Zip JSON Array solves this by merging multiple parallel JSON array columns into one combined array where each element is an object that holds the corresponding values from all input arrays at that index. The result is a single consolidated array column that can be flattened, analyzed, or passed on as a structured output.
Zip two or more JSON array columns into a single combined array column in Infoveave. Merge parallel array columns returned from APIs or event systems by index into structured objects without code.
Zip JSON Array is one step inside a multi-step Infoveave workflow. Chain it with other activities — no code, no manual hand-offs.
Build this workflow visually in Infoveave Data Automation — drag, connect, and schedule with no infrastructure setup.
Real scenarios where this transformation saves hours of manual work.
A financial analytics team receives API responses where each portfolio record includes a projectmix column with a JSON array of allocation percentages by category and a salesmix column with a corresponding JSON array of sales percentages for the same categories by index. Zip JSON Array merges both arrays into a single zipped_mix column where each element is an object combining the project and sales values for that category index. The team then passes the zipped array to Flatten JSON Array to expand into individual rows for full portfolio reporting.
A manufacturing team extracts shift records where planned production targets and actual production volumes are stored as parallel JSON arrays with one element per hour. Zip JSON Array combines the planned and actual arrays into a single combined array with one object per hour holding both planned and actual values. The merged array can then be flattened into rows for hourly deviation analysis and OEE metric calculation.
A retail pricing team exports pricing engine results where each product record includes a price_history array and a quantity_history array, each with one element per week. Zip JSON Array combines both arrays into a single weekly_data array where each element holds that week's price and quantity values together. The team then flattens the zipped array into rows for weekly revenue calculation and trend visualization.
Input data (left) is transformed using the configuration below. The output table (right) is ready for dashboards or downstream steps.
projectmix, salesmixzipped_mixInput Data
| ID | projectmix | salesmix |
|---|---|---|
| 1 | projectvalue:10 projectvalue:20 | salesvalue:100 salesvalue:200 |
| 2 | projectvalue:15 projectvalue:30 | salesvalue:150 salesvalue:300 |
Output Data
| ID | projectmix | salesmix | zipped_mix |
|---|---|---|---|
| 1 | projectvalue:10 projectvalue:20 | salesvalue:100 salesvalue:200 | index0: projectvalue=10 salesvalue=100 | index1: projectvalue=20 salesvalue=200 |
| 2 | projectvalue:15 projectvalue:30 | salesvalue:150 salesvalue:300 | index0: projectvalue=15 salesvalue=150 | index1: projectvalue=30 salesvalue=300 |
Key fields to configure in the Infoveave workflow builder. Full reference available in the documentation.
Column Name
Select two or more columns to zip. Each selected column must contain a JSON array. The arrays are combined by index position — element at index 0 from all selected columns is merged into the first element of the output array, element at index 1 produces the second output element, and so on. All selected columns must have JSON arrays of the same length for the combining to work correctly.
Output Column
Specify the name for the new column that will contain the resulting zipped JSON array. The zipped array contains one object per index position, with that object holding the combined properties from all input arrays at that index. This output column is typically then passed into Flatten JSON Array to expand the merged array objects into individual rows.
Everything you need to know about Zip JSON Array in Infoveave.
Transformations in the same family as Zip JSON Array, often chained together in the same Infoveave workflow.
Part of Infoveave Data Automation
Zip JSON Array is one of over 80 transformation activities available inside Infoveave workflows. Chain transformations together — no code, no exports, no waiting for IT.
Ready to see Infoveave in action?