Closed laggingreflex closed 4 years ago
Also $
as in
{"$foo": "bar"}
This version of jmespath doesn't have that particular problem: yarn add jmespath@0.14.0
Actually it turns out that the spec dictates that when special characters in keys occur the key should be quoted
So in the example above...
{"$foo": "bar"}
should be
jmespath.search({ 'foo-bar': 'baz' }, '"foo-bar"')
Actually it turns out that the spec dictates that when special characters in keys occur the key should be quoted
jmespath.search({ 'foo-bar': 'baz' }, '"foo-bar"')
Ahh! That's superb. It works. Thanks! 👍
Special characters in keys don't work
If I have data like this:
And I use the search:
'foo-bar'
, it gives error.Lots of other special characters don't seem to work either:
.,/\|{}
Tested on v0.15.0