I have a JSON like this:
{
"department":"Data & Analytics",
"child":[
{
"department":"Data Enginnering",
"child": [
{"department":"AWS Squad"},
{"department":"GCP Squad"}
..
..so..
..on..
..so..
..forth..
..
]
},
{
"department":"Data Science"
}
]
}
I need to load it in BigQuery so what I am looking for is to transform it in something like the code below before:
[
{
"department":"Data & Analytics",
"child":["Data Enginnering", "Data Science"]
},
{
"department":"Data Enginnering",
"child":["AWS Squad", "GCP Squad"]
},
{
"department":"Data Science"
},
{
"department": "AWS Squad"
},
{
"department": "GCP Squad"
}
]
But i got stuck trying