-
Notifications
You must be signed in to change notification settings - Fork 887
Open
Description
Take this json object for example,
{
"1300014": {
"code": "1300014",
"price": 59.18,
"symbol": "300014",
"update": "2020/04/15 15:59:54",
},
"1300015": {
"code": "1300015",
"price": 43.31,
"symbol": "300015",
"update": "2020/04/15 15:59:54",
}
}
And the desired json array is as follow:
[
{
"code": "1300014",
"price": 59.18,
"symbol": "300014",
"update": "2020/04/15 15:59:54",
},
{
"code": "1300015",
"price": 43.31,
"symbol": "300015",
"update": "2020/04/15 15:59:54",
}
]
I thought [*]
can do the magic, but It's not. It seems only the first object was selected.
[
{
"code": "1300014",
"price": 59.18,
"symbol": "300014",
"update": "2020/04/15 15:59:54",
}
]
So, the question is what Path Syntax should I use to query all the values of an nested object instead of the first value only.
M0rdecay, afduarte, franchb, cgreenlee-tc, MajorDallas and 1 more
Metadata
Metadata
Assignees
Labels
No labels