I have a JSON like the one shown below
{
"timestamps": [
"2020-12-17T20:05:00Z",
"2020-12-17T20:10:00Z",
"2020-12-17T20:15:00Z",
"2020-12-17T20:20:00Z",
"2020-12-17T20:25:00Z",
"2020-12-17T20:30:00Z"
],
"properties": [
{
"values": [
-20.58975828559592,
-19.356728999226693,
-19.808982964173023,
-19.673928070777993,
-19.712275037138411,
-19.48422739982918
],
"name": "Neg Flow",
"type": "Double"
},
{
"values": [
2,
20,
19,
20,
19,
16
],
"name": "Event Count",
"type": "Long"
}
],
"progress": 100.0
}
How to convert this to a data frame like the following . Though I was able to loop thorough the individual data items, I am interested in finding if there is a sleek way to do this?
+----------------------+---------------------+-------------+
+Time Stamps + Neg Flow + Event Count +
+----------------------+---------------------+-------------+
|2020-12-17T20:05:00Z |-20.58975828559592 | 2 |
+----------------------+---------------------+-------------+
|2020-12-17T20:10:00Z |-19.356728999226693 | 20 |
+----------------------+---------------------+-------------+