nishit1987 / jsonpath

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

Dictionary keys containing dots can't be found #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a json that contain a dictionary with a key that contains a dot (for 
example: {'34.3': 'value'} )
2. Try to query from the dictionary key with a dot (for example $.['34.3'])
3. Nothing will be found (but if '34.3' was '34_3', then it'd work)

What is the expected output? What do you see instead?
It should be able to query dictionary keys containing dots inside, but it isn't.

What version of the product are you using? On what operating system?
Python 2.7 with the latest version of the JsonPath library

Please provide any additional information below.
It seem that when I try to query something like "$['34.4']" it is transformed 
into "$.34.4" before querying, which causes the problem

Original issue reported on code.google.com by ricard...@gmail.com on 4 Jul 2014 at 1:25

GoogleCodeExporter commented 9 years ago
I just noticed that the Python implementation is separated from this source 
code. This issue probably doesn't apply to this project.

Original comment by ricard...@gmail.com on 4 Jul 2014 at 1:51