HI!!!
I am trying to combine two JsonArray (Nextbus & SubsequentBus) to a single column.
I managed to extract both JsonArray but unable to append.
This is how my data looks like this :
Services: [ [-]
{ [-]
NextBus: { [+]
}
Operator: xxx
ServiceNo: 000
SubsequentBus: { [+]
}
}
{ [+]
}
{ [+]
}
{ [+]
}
]
This is my search query :
... | spath path=Services{}
| rename Services{}.ServiceNo AS name , Services{}.Operator AS type, Services{}.NextBus{}.ArrivingTime As ar, Services{}.SubsequentBus{}.ArrivingTime As est_arr
| eval x=mvzip(name,mvzip(type,arr) ) | mvexpand x
| eval y=mvzip(name,mvzip(type,est_arr)) | mvexpand y
Hope to get advice.
Thanks in advance! 🙂
... View more