Skip to content

Incompatible syntax #7

@boukeversteegh

Description

@boukeversteegh

Instead of:

$.Result.Books[?(@.title="my book")]

I have to write:

$.Result.Books[?(@."title"=="my book")]

In order to prevent PHP notices, and to prevent assignment instead of comparisson. Because of eval.

PHP Notice:  Use of undefined constant title - assumed 'title' in /home/vagrant/application/src/vendor/peekmo/jsonpath/src/Peekmo/JsonPath/JsonPath.php(233) : eval()'d code on line 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions