Skip to content

JSON Literal unquoted string #40

@SamMousa

Description

@SamMousa

The spec does not allow for this:

[?abc == `def`]

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:

  1. We switched to community typescript for client side
  2. 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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions