Akash2351 / jsonpath

Automatically exported from code.google.com/p/jsonpath
0 stars 0 forks source link

How to reference keys? #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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