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

Extend json path syntax to support field names containing reserved characters #893

Closed
martint opened this issue Dec 5, 2013 · 1 comment

Comments

@martint
Copy link
Contributor

martint commented Dec 5, 2013

There's currently no way to extract values for fields in json structures whose names contain any of the special json path characters ($, [, ], ., etc.).

The syntax for json path expressions (for json_extract and friends) should be extended. One possible option is to allow bracket notation for field references (see http://goessner.net/articles/JsonPath/).

For example, to wanted to get the value for key "1.0" from the following structure:

{ "1.0": "apple", "2.0": "banana" }

The corresponding json path expression would be $["1.0"]. Note that the expression uses " instead of ' to make it fit more naturally within SQL strings.

@rishidwivedi rishidwivedi self-assigned this Mar 30, 2014
@dain
Copy link
Contributor

dain commented Jul 7, 2014

Fixed by #1466

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

3 participants