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
Currently it seems this code is fairly strict in only supporting single quotes, e.g.,
$.key[?(@.size == 'small')].city
I am wondering if we can loosen this restriction and also allow for double quotes, e.g.,
$.key[?(@.size == "small")].city
The reason for this is when using this syntax in a CLI it is best to wrap this in single quotes as $ is a special character for most shells that gets interpolated when using double quotes. So the following would theoretically work without having to escape single quotes...
Currently it seems this code is fairly strict in only supporting single quotes, e.g.,
I am wondering if we can loosen this restriction and also allow for double quotes, e.g.,
The reason for this is when using this syntax in a CLI it is best to wrap this in single quotes as
$
is a special character for most shells that gets interpolated when using double quotes. So the following would theoretically work without having to escape single quotes...my_cli --path '$.key[?(@.size == "small")].city' my_data.json
The text was updated successfully, but these errors were encountered: