Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quoted keys are obliterated in cast to string #53

Open
catskul opened this issue Oct 26, 2017 · 0 comments
Open

Quoted keys are obliterated in cast to string #53

catskul opened this issue Oct 26, 2017 · 0 comments

Comments

@catskul
Copy link

catskul commented Oct 26, 2017

Despite the fact that jsonpath respects quoted strings on query execution, printing the quey loses data where keys are quoted.

In [48]: str(jsonpath_rw.parse('$.foo.derp.herp'))
Out[48]: '$.foo.derp.herp'

In [49]: str(jsonpath_rw.parse('$.foo."derp.herp"'))
Out[49]: '$.foo.derp.herp'

In [50]: str(jsonpath_rw.parse('$.foo."derp.herp"')) == str(jsonpath_rw.parse('$.foo.derp.herp'))
Out[50]: True

Expected output of of the equality comparison should be False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant