forked from isagalaev/ijson
-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
Description
Is your feature request related to a problem? Please describe.
I am streaming values from a large JSON file into a dataframe, but I am unable to group relevant items together due to lack of depth.
Describe the solution you'd like
For example, instead of
A.item.B.item.C which can be repeated many times.
It would be great to have something like:
A.[0].B.[0].C
For example for the following object:
{
"A": [
{
"B": [
{ "C": "Test-1" },
{ "C": "Test-2" },
{ "C": "Test-3" }
]
},
{
"B": [
{ "C": "Test-4" },
{ "C": "Test-5" },
{ "C": "Test-6" }
]
}
]
}I would expect to see the following events:
| Prefix | Name | Value |
|---|---|---|
A.[0].B.[0].C |
string |
Test-1 |
A.[0].B.[1].C |
string |
Test-2 |
A.[0].B.[2].C |
string |
Test-3 |
A.[1].B.[0].C |
string |
Test-4 |
A.[1].B.[1].C |
string |
Test-5 |
A.[1].B.[2].C |
string |
Test-6 |
Describe alternatives you've considered
N/A
Reactions are currently unavailable