JsonPath icon indicating copy to clipboard operation
JsonPath copied to clipboard

JsonPath with PHP updated from Stefan Goessner's implementation

Results 12 JsonPath issues
Sort by recently updated
recently updated
newest added

`$.something[?(@.another)]` - is works `[0][?(@.another)]` - don't work `*[?(@.another)] `- also don't work

Hi! Can I somehow find all arrays without elements? For example, select all where items is 0 elements: ![image](https://user-images.githubusercontent.com/38257723/66496693-fca98080-eac3-11e9-9846-21f277ebf580.png)

Operator | Description -- | -- =~ | left matches regular expression [?(@.name =~ /foo.*?/i)] https://github.com/json-path/JsonPath#filter-operators

{"org":[{ "date": "20190330", "organization": ["associated press"], "persons": ["ahmed gaid salah", "abdelaziz bouteflika"], "locations": ["algiers", "alger", "algeria"] }] } I want to find, filter "algeria" locations. Is it possible ?

Pathing will be retained in the key separated by a pipe |

Rules with expressions allow select nodes by name and content in Jayway JsonPath implementation. for example: ```JSON [ { "a": { "c": 1, "d": 1 }, "b": { "c": 1,...

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....

public function testGetAllByKeyFiltered() { $data = $this->jsonStore->get("$..book[(@.code=='02.01')].category"); $expected = ["fiction", "fiction"]; $this->assertEquals($data, $expected); } $data = $this->jsonStore->get("$..book[?(@.code=='02.01')].category"); ? discard

For JsonStore I need to use a callback for method set() to manipulate the existing value. I is very easy to implement, but for which version should I send a...

You have different errors in your unit test: - In your composer.json you expects the php version >=5.3.3, but you use the new notation for arrays "[" and "]". You...