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

Use single quote for long format syntax #18

Closed
JCEmmons opened this issue Mar 24, 2017 · 0 comments · Fixed by #20
Closed

Use single quote for long format syntax #18

JCEmmons opened this issue Mar 24, 2017 · 0 comments · Fixed by #20
Assignees

Comments

@JCEmmons
Copy link

According to http://goessner.net/articles/JsonPath/ , bracket notation for a given path uses single quote, not double quote. So in your examples:

Instead of

$.baz[\"π\"]

isn't a valid key. It should be really be

$.baz['π']

Actually, there's no specific need to force the long form just because there's a non-ASCII character
in the key.

I'm pretty sure that

$.baz.π

is a perfectly legit key.

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

Successfully merging a pull request may close this issue.

2 participants