json - Querying JsonPath subnode -
considering following node
{ "list": [ { "property": [ { id: "1" }, { id: "2" } ] } }
i'd consider list property.id = 1 , return list nodes.
tried with:
$.list[?(@.property[*].id=='1')]
but id doesn't work.
then tried with:
$.list[*].property[?(@.id=='1')]
this work, need return list, , not property value
any help?
Comments
Post a Comment