You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this library I noticed that single quotes do not work within a JSONPath, specifically I was evaluating a path like $.data.attributes[?(@.name=='title')].value which fails but changing to double quotes around title like $.data.attributes[?(@.name=="title")].value works fine. I'm not sure if the JSONPath spec addresses quoting at all but the evaluator at http://jsonpath.com/ handles the single quotes fine.
The text was updated successfully, but these errors were encountered:
jsonpath has no formal specification and the (script) language jsonpath is used in is also part of jsonpath. http://jsonpath.com/ uses js as script language so " and ' works fine. But yes, it would be nice to have them.
When using this library I noticed that single quotes do not work within a JSONPath, specifically I was evaluating a path like
$.data.attributes[?(@.name=='title')].value
which fails but changing to double quotes aroundtitle
like$.data.attributes[?(@.name=="title")].value
works fine. I'm not sure if the JSONPath spec addresses quoting at all but the evaluator at http://jsonpath.com/ handles the single quotes fine.The text was updated successfully, but these errors were encountered: