The spec does not allow for this:
However the JMESPath.org implementation explicitly supports this case: https://github.com/jmespath/jmespath.js/blob/master/jmespath.js#L443
https://github.com/jmespath/jmespath.php/blob/master/src/Lexer.php#L432
Note that the JMESPath.org implementation is wrong here, but it might be nice to list this in the compatibility notes.
We currently are in a difficult spot:
- We switched to community typescript for client side
- We're still on JMESPath.org PHP implementation for server side
Reasonably the PHP implementation will not change their behavior (and become inconsistent with their own implementation).
Would you consider adding a PHP implementation? (Where I will fork the JMESPath.org implementation, modernize it and make it compliant with the community spec?)
The spec does not allow for this:
However the JMESPath.org implementation explicitly supports this case: https://github.com/jmespath/jmespath.js/blob/master/jmespath.js#L443
https://github.com/jmespath/jmespath.php/blob/master/src/Lexer.php#L432
Note that the JMESPath.org implementation is wrong here, but it might be nice to list this in the compatibility notes.
We currently are in a difficult spot:
Reasonably the PHP implementation will not change their behavior (and become inconsistent with their own implementation).
Would you consider adding a PHP implementation? (Where I will fork the JMESPath.org implementation, modernize it and make it compliant with the community spec?)