Skip to the content

Automate Everything !

🤖 Explore with AI: ChatGPT Perplexity Claude Google AI Grok

For Enterprises | Teams | Start-Ups

eZintegrations

eZintegrations – AI Workflows & AI Agents Automation Hub

Automate to Innovate

0
$0.00
eZintegrations

eZintegrations – AI Workflows & AI Agents Automation Hub

Automate to Innovate

Menu
0
$0.00
  • Categories
    • Workflow Automation
    • AI Workflow
    • AI Agent
    • Agentic AI
  • Home
  • Automate Now !
  • About Us
  • Contact
  • Blog
  • Pricing
  • Free AI Workflow
  • Free AI Agents

eZintegrations

  • eZintegrations Introduction
  • Integration Bridge
    • Rename Integration Bridge
    • Enable and Disable Integration Bridge
    • Integration Bridge Save
    • Integration Bridge Run Once
    • Clear Logs of An Integration Bridge
    • Integration Bridge Share Feature
    • Copy Operation
    • Integration Bridge Import/Export
    • Integration Bridge Auto Save Feature
    • View An Integration Bridge
    • Copy Integration Bridge
    • Streaming Logs of Integration Bridge
    • Download Logs of An Integration Bridge
    • Status of Integration Bridge
    • Refresh an Integration Bridge
    • Stop An Integration Bridge
    • Start An Integration Bridge
    • Frequency
  • Feedback
    • Feedback: Tell Us What You Think
  • Understanding Session Timeout
    • Understanding Session Timeout and the Idle Countdown Timer
  • Alerts
    • Alerts
  • Marketplace
    • Marketplace
  • DIY Articles
    • 60+ Transformations for Smarter Data: How eZintegrations Powers Operations
    • From SOAP to GraphQL: Modernizing Integrations with eZintegrations
    • Accelerate Growth with eZintegrations Unified API Marketplace
    • Collaborative Integrations: Sharing Bridges in eZintegrations to Foster Cross-Team Innovation
    • Unlocking Hidden Value in Unstructured Data: eZintegrations AI Document Magic for Strategic Insights
    • Workflow Cloning Wizardry: Replicating Success with eZintegrations Integration Duplication for Rapid Scaling
    • Time Zone Triumph: Global Scheduling in eZintegrations for Synchronized Cross-Border Operations
    • Parallel Processing Power: eZintegrations Multi-Threaded Workflows for Lightning Fast Data Syncs
    • From Data Chaos to Competitive Edge: How eZintegrations AI Syncs Silos and Boosts ROI by 40%
    • From Emails to Insights: eZintegrations AI Turns Chaos into Opportunity
    • Handling XML Responses in eZintegrations
    • Text to Action: Shape Data with Plain English or Python in eZintegrations
    • AI Magic: Send Data to Any Database with a Simple English Prompt in eZintegrations
    • Configuring Netsuite as Source
    • Configuring Salesforce as Source
    • Overcoming Upsert Limitations: A Case Study on Enabling Upsert Operations in APIs without Inherent Support
    • Connecting QuickBooks to Datalake
    • Connecting Salesforce to Netsuite
    • Connecting My-SQL to Salesforce Using Bizdata Universal API
    • Effortless Integration Scheduling: Mastering Biweekly Execution with eZintegrations
    • Connecting MS-SQL or Oracle Database to Salesforce Using Bizdata Universal API
    • Establishing Token-Based Authentication within NetSuite
    • Registering a Salesforce App and Obtaining Client ID / Secret (for API Calls / OAuth)
  • Management
    • Adding Users and Granting Organization Admin Privileges : Step-by-Step Guide
    • Security Matrix
    • Adding Users as an Organization Admin (Step-by-Step Guide)
  • Appendix
    • Pivot Operation Use Cases
    • Efficient Column Renaming in eZintegration Using Python Operation
    • Filter Operation Use Cases
    • Connecting any Database to Database
    • Connecting Data Targets
    • Connecting Data Sources
  • Release Notes
    • Release Notes
  • Accounting & Billing
    • Invoices
    • Billing Information
    • Payment Method
    • Current Plan
    • Plans
    • Dashboard
  • My Profile
    • My Profile
  • OnBoarding
    • Microsoft Login
    • Multi-Factor Authentication
    • Login for New Users
  • Pycode Examples
    • Extract Domain Name from Email using Split
    • Split String with Regular Expression
    • Bulk Rename of Keys
    • Form a JSON Object from array of array
    • URL Parsing
    • Form a JSON Object based on the key and values available in JSON Dataset
    • Convert Empty String in a JSON to a “null” value
    • Generate a OAuth 1.0 Signature or Store a Code Response in a User Defined Variable
    • Rename JSON Key based on other key’s value
  • Sprintf
    • Sprintf
  • Data Source Management
    • Data Source Management
  • Data Source API
    • Response Parameters: Text, XML, and JSON Formats
    • Environment Settings for Reusable and Dynamic Configuration
    • API Numeric Parameters for Pagination and Record Limits
    • API Time Parameters for Date and Time Filtering
    • How to test the Data Source API
    • Pre- Request Scripts
      • Pre- Request Scripts for Amazon S3
      • Pre- Request Scripts for Oracle Netsuite
      • Pre-Request Script for Amazon SP API
      • Pre-Request Scripts
    • API Pagination Methods
      • Custom Pagination
      • Encoded Next Token Pagination
      • Cursor Pagination
      • Pagination with Body
      • Total Page Count Pagination
      • Offset Pagination
      • Next URL Pagination
      • API Pagination Introduction
      • Pagination examples
        • SAP Shipment API Pagination
        • Amazon SP API Pagination
    • API Authorization
      • OAuth 2.0 Authorization
      • OAuth 1.0 Authorization
      • Basic Authentication Method
      • API Key Authorization Method
      • Different Types of API Authorization
  • Console
    • Console: Check Your Data at Every Step
  • eZintegrations Dashboard Overview
    • eZintegrations Dashboard Overview
  • Monitoring Dashboard
    • Monitoring Dashboard
  • Advanced Settings
    • Advanced Settings
  • Summary
    • Summary
  • Data Target- Email
    • Data Target- Email
  • Data Target- Bizintel360 Datalake Ingestion
    • Data Target- Goldfinch Analytics Datalake Ingestion
  • Data Target- Database
    • Data Target – Database SQL Examples
    • Database as a Data Target
  • Data Target API
    • Response Parameters
    • REST API Target
    • Pre-Request Script
    • Test the Data Target
  • Bizdata Dataset
    • Bizdata Dataset Response
  • Data Source- Email
    • Extract Data from Emails
  • Data Source- Websocket
    • WebSocket Data Source Overview
  • Data Source Bizdata Data Lake
    • How to Connect Data Lake as Source
  • Data Source Database
    • How to connect Data Source Database
  • Data Operations
    • Deep Learning
    • Data Orchestration
    • Data Pipeline Controls
    • Data Cleaning
    • Data Wrangling
    • Data Transformation

Goldfinch AI

  • Goldfinch AI Introduction

Bizdata API

  • Universal API for Database
    • API for PostgreSQL Database – Universal API
    • API for Amazon Aurora Database (MySQL/Maria) – Universal API
    • API for Amazon Redshift Database – Universal API
    • API for Snowflake Database – Universal API
    • API for MySQL/Maria Database – Universal API
    • API for MS-SQL Database-Universal API
    • API for Oracle Database- Universal API
    • Introduction to Universal API for Databases
  • SFTP API
    • SFTP API
  • Document Understanding APIs
    • Document Understanding API- Extract data from Documents
  • Web Crawler API
    • Web Crawler API – Fast Website Scraping
  • AI Workflow Testing APIs
    • Netsuite Source Testing API (Netsuite API Replica)
    • Salesforce Testing API (Salesforce API replica)
    • OAuth2.0 Testing API 
    • Basic Auth Testing API 
    • No Auth Testing API
    • Pagination with Body Testing API
    • Next URL Pagination Testing API 
    • Total Page Count Pagination Testing API
    • Cursor Pagination Testing API 
    • Offset Pagination Testing API
  • Import IB API
    • Import Integration service with .JSON file
  • Linux File & Folder Monitoring APIs
    • Monitor Linux Files & Folder using APIs
  • Webhook
    • Webhook Integration-Capture Events in Real Time
  • Websocket
    • Websocket Integration- Fetch Real Time Data
  • Image Understanding
    • Image Understanding API – Extract data from Images

Goldfinch Analytics

  • Visualization Login
    • Enabling Two Factor Authentication
    • Visualization login for analytics users
  • Profile
    • Profile
  • Datalake
    • Datalake
  • Discover
    • Discover
  • Widgets
    • Filter
    • Widget List
    • Widgets Guide
    • Creating Widgets & Adding Widgets to Dashboard
  • Dashboard
    • Dashboard
  • Views
    • Views
  • Filter Queries
    • Filter Queries for Reports and Dashboard
  • Alerts
    • Alerts
  • Management
    • Management
  • Downloading Reports with Filtered Data
    • Downloading Reports with Filtered Data in Goldfinch Analytics
  • Downloads
    • Downloads – eZintegrations Documents & Resources | Official Guides & Manuals
View Categories

Form a JSON Object from array of array

Overview

Forming a JSON object from an array of arrays is a common data transformation requirement in integration workflows. This process converts tabular-style data into structured JSON objects using column headers as keys.

In eZintegrations, Python Operations can be used to transform single-line array datasets into key-value based JSON objects for easier processing and analysis.

When to Use

Use this method when incoming data is structured as an array of arrays and needs to be converted into readable JSON records.

  • Processing spreadsheet-style datasets
  • Converting tabular API responses
  • Preparing data for reporting and analytics
  • Normalizing integration outputs
  • Improving data readability

How It Works

The first row of the array is treated as column headers. Each subsequent row represents a data record.

The Python script maps each header to its corresponding value in every row and constructs JSON objects for each record.

Input Data

The Python Operation receives a dataset containing values stored as an array of arrays.

{
  "bizdata_dataset": {
    "values": [
      [
        "Order ID",
        "Country",
        "City",
        "Customer Type",
        "Item Category",
        "Item",
        "Quantity",
        "Amount"
      ],
      [
        "42420",
        "United States",
        "Henderson",
        "Consumer",
        "Furniture",
        "Bookcases",
        "2",
        "261.96"
      ],
      [
        "34637",
        "United States",
        "Henderson",
        "Consumer",
        "Furniture",
        "Chairs",
        "2",
        "260"
      ],
      [
        "37892",
        "United States",
        "Henderson",
        "Consumer",
        "Furniture",
        "Bookcases",
        "2",
        "221.96"
      ]
    ]
  }
}

Python Operation Logic

The following Python script converts the array-based dataset into structured JSON objects using header mapping.

When running scripts in Python Operations, the incoming data is stored in the pycode_data variable. This variable is used to read and update the dataset.

Responsedata = []

new_data = pycode_data['values']

# Get the headers from the first row
headers = new_data[0]

# Get the data rows
data_rows = new_data[1:]

num_columns = len(headers)

result_rows = []

for row in data_rows:
    result_row = {}
    for i in range(num_columns):
        result_row[headers[i]] = row[i]
    result_rows.append(result_row)

res = {"values": result_rows}

pycode_data.update(res)

Output Data

After processing, the array-based dataset is converted into structured JSON objects with meaningful keys.

{
  "bizdata_dataset": {
    "values": [
      {
        "Order ID": "42420",
        "Country": "United States",
        "City": "Henderson",
        "Customer Type": "Consumer",
        "Item Category": "Furniture",
        "Item": "Bookcases",
        "Quantity": "2",
        "Amount": "261.96"
      },
      {
        "Order ID": "34637",
        "Country": "United States",
        "City": "Henderson",
        "Customer Type": "Consumer",
        "Item Category": "Furniture",
        "Item": "Chairs",
        "Quantity": "2",
        "Amount": "260"
      },
      {
        "Order ID": "37892",
        "Country": "United States",
        "City": "Henderson",
        "Customer Type": "Consumer",
        "Item Category": "Furniture",
        "Item": "Bookcases",
        "Quantity": "2",
        "Amount": "221.96"
      }
    ],
    "items": []
  }
}

How to Use

Follow these steps to convert array-based data into JSON objects.

  1. Configure the integration to receive array-of-array datasets.
  2. Open the Python Operation editor.
  3. Paste the transformation script.
  4. Ensure the values key contains header and data rows.
  5. Save and deploy the workflow.
  6. Test the operation with sample input.

Use Case Example

This transformation is useful for converting spreadsheet-style data into API-friendly formats.

  • Input Format: Tabular array
  • Output Format: Key-value JSON objects
  • Usage: Reporting, analytics, and data pipelines

Troubleshooting

  • Ensure the first row contains valid column headers.
  • Verify that all rows have the same number of columns.
  • Check for missing or null values in rows.
  • Confirm that pycode_data is correctly referenced.
  • Review logs if output fields are missing.

Frequently Asked Questions

What is the purpose of using the first row as headers?

The first row defines the field names used as keys in the generated JSON objects.

Can this script handle variable column counts?

No. The script assumes that all rows match the header column count.

What happens if a row has fewer values than headers?

Missing values may cause indexing errors or incomplete records.

Can this be used for large datasets?

Yes. The script processes records dynamically and supports large datasets, depending on system limits.

Does this script modify the original data?

Yes. The script updates the values key with the transformed JSON objects.

Notes

  • This method assumes a consistent and well-structured dataset.
  • Validate input data before applying transformations.
  • Test scripts in a staging environment.
  • Maintain backup copies of original datasets.
Updated on February 19, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Bulk Rename of KeysURL Parsing
Table of Contents
  • Overview
  • When to Use
  • How It Works
  • Input Data
  • Python Operation Logic
  • Output Data
  • How to Use
  • Use Case Example
  • Troubleshooting
  • Frequently Asked Questions
    • What is the purpose of using the first row as headers?
    • Can this script handle variable column counts?
    • What happens if a row has fewer values than headers?
    • Can this be used for large datasets?
    • Does this script modify the original data?
  • Notes
© Copyright 2026 Bizdata Inc. | All Rights Reserved | Terms of Use | Privacy Policy