Skip to content

Dictionary keys containing dots can't be found #30

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions