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

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -