jmespath.js
                                
                                 jmespath.js copied to clipboard
                                
                                    jmespath.js copied to clipboard
                            
                            
                            
                        Bug with dashses in unquoted strings
The following query:
data.relationships.flow-actions.data[].id
is invalid syntax according to the specification, because dashes are not allowed in unquoted strings, however this library allows it. I guess we are missing a spec compliance test that asserts there's a parse error. FYI, the PHP implementation is correct, and rejects that input.
The origin of this report is https://github.com/jmespath/jmespath.php/issues/57#issuecomment-571821595.
It seems like this is fixed in 0.15.0, but https://jmespath.org/ is using 0.14.0. This just needs to be fixed in https://github.com/jmespath/jmespath.site
@youngbob For the record, JMESPath Community site uses the latest version of the JavaScript implementation.
The corresponding pull request has also been accepted recently on the official site. Unfortunately, it has yet to be deployed to take effect.