I have a json object that looks like this:
{
"data": {
"id" : 1234,
"details": [
{
"vid": "332",
"long": -79,
"lat": 45
},
{
"vid": "33",
"long": -77,
"lat": 32
}
]
}
}
I would like output a csv file from this data that looks like this:
"1234","332","-79", "45"
"1234", "33", "-77", "32"
E.g. I want to add something from a node in each of another node's array's objects, essentially de-normalize the data.
Is there a way to access a value from somewhere else in the json data?