I want to transfer json files from Amazon S3 to BigQuery, but i've got the problem that BigQuery only support new delimited json files. I don't know how to transform my json files to ndjson. The problem is i dont know how to transform, because the load date and the record source within the outer JSON structure.
Here you can see an example of my json files:
{
"edwLoadDate": "2017-01-18T18-08-44",
"edwRecordSource": "MAILCHIMP",
"data": [
{
"data": {
"lastName": "John",
"firstName": "Doe",
"email": "john@example123.com"
},
"edwSequence": "0"
},
{
"data": {
"lastName": "John",
"firstName": "Doe",
"email": "john@example123.com"
},
"edwSequence": "1"
}
]
}