Rajashree
08/21/2025, 11:09 AMkapa.ai
08/21/2025, 11:09 AMjson { "columns": {"id": "int", "name": "string", "age": "int"}, "data": [[1, "Alice", 25], [2, "Bob", 30]] } You want to produce: json [ {"id": 1, "name": "Alice", "age": 25}, {"id": 2, "name": "Bob", "age": 30} ] How to do it: 1. Parse the string as JSON. 2. Extract the column names in order. 3. For each row in data, create an object mapping column names to values. This approach is consistent with how Airbyte's CSV decoder works, mapping headers to row values to produce normalized JSON objects [CSV Response Decoding](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/record-processing#csv). If you need a code example, please specify the language, but the above logic is the Airbyte-compliant way to structure your records.Rajashree
08/21/2025, 11:13 AMkapa.ai
08/21/2025, 11:13 AMkapa.ai
08/21/2025, 11:14 AMpython import json # Your input string input_str = '{"columns": {"id": "int", "name": "string", "age": "int"}, "data": [[1, "Alice", 25], [2, "Bob", 30]]}' # Parse the string into a Python dictionary parsed = json.loads(input_str) # Extract column names in order columns = list(parsed["columns"].keys()) # Build structured records records = [dict(zip(columns, row)) for row in parsed["data"]] # Output as JSON print(json.dumps(records, indent=2)) This will output: json [ { "id": 1, "name": "Alice", "age": 25 }, { "id": 2, "name": "Bob", "age": 30 } ] This approach is consistent with how Airbyte expects structured records to be emitted from sources [CSV Response Decoding](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/record-processing#csv).