carryzheng/jsonpath

How to reference keys?

Opened this issue · 0 comments

With the resolution of Issue 6 in 0.8.4 I can now do

   jsonPath({'x': {'y': 'z', 'yy': 'zz'}}, "$")

to get back 'x'  and $.x.y to get 'z'

Question: how do I reference 'y' i.e. the first key 'in' x?

I'm pretty sure there is an equivalent in xpath..?


Original issue reported on code.google.com by eoghanom...@gmail.com on 22 Nov 2009 at 8:29