Gold88 / jsonpath

Automatically exported from code.google.com/p/jsonpath

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to reference keys?

GoogleCodeExporter opened this issue · 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