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 path elements are not supported #7

Open
pebbe opened this issue Nov 10, 2021 · 2 comments
Open

quoted path elements are not supported #7

pebbe opened this issue Nov 10, 2021 · 2 comments

Comments

@pebbe
Copy link

pebbe commented Nov 10, 2021

This doesn't work. With this data:

{
  "hello world": 42
}

... and either of these queries:

**.'hello world'
**."hello world"

This should be the output:

42

You can test this here: https://try.jsonata.org/

@pebbe
Copy link
Author

pebbe commented Nov 10, 2021

I just found out you can use backquotes. This works:

**.`hello world`

@stefanvanburen
Copy link
Contributor

Hi - thanks for raising the issue! It looks like jsonata-js/jsonata#181 is a conversation about this - as far as I can tell, the single-quote / double-quote path elements were being considered for deprecation. I'd like to see a conclusion on that issue prior to making changes here.

tbal999 added a commit to tbal999/jsonata-go that referenced this issue May 14, 2023
* update dev

* add mutex

* another

* and another

* fix tests etc

Co-authored-by: tbal999 <tom@fern91.com>
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

2 participants