GitHub user hiromipaw closed a discussion: Parse JSON array containing tuples
I have to parse a JSON structure consisting of an array containing a tuple with
a string and a Float64.
Ex:
```
{ "elapsed_seconds": [
[
"GENERAL:LAUNCHED",
0.0
],
[
"GENERAL:EXTENDED",
0.309999942779541
],
[
"GENERAL:EXTENDED",
0.7200000286102295
],
[
"GENERAL:EXTENDED",
0.9600000381469727
],
[
"GENERAL:BUILT",
0.9600000381469727
],
[
"GENERAL:CLOSED",
63.0
]
]
}
```
I have been trying to use a list object but it seems that entails that all the
elements of the list have the same data type.
Do you have any idea if it is possible to parse something like this? I have
years of historical data, so I won't be able to easily change the JSON
structure, even though I am aware these object are not the best possible way to
write json.
GitHub link: https://github.com/apache/datafusion/discussions/7188
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]