Package Information |
Summary |
Extract data using JSONPath notation |
Maintainers |
Viktor Djupsjöbacka <
viktor dot djupsjobacka at supermetrics dot com >
(lead)
[details]
Mike Kaminski (lead)
[details]
|
License |
PHP License |
Description |
This extension allows you to use the versatile JSONPath query language to extract the properties that you want from a decoded JSON document. |
Release notes
Version 3.0.0
(stable)
|
## Breaking changes
In comparisons involving numbers, numeric strings are now treated as numbers.
Example: ``` $data = [ 'items' => [ [ 'id' => 1, 'quantity' => 5, ], [ 'id' => 2, 'quantity' => '8', ], ], ]; ```
Before: `$.items[?(@.quantity > 0)]` returns `[['id' => 1, 'quantity' => 5]]`. After: `$.items[?(@.quantity > 0)]` returns `[['id' => 1, 'quantity' => 5], ['id' => 2, 'quantity' => '8']]`.
## What's Changed * Test also on PHP 8.4 for Windows and PHP 8.5 (nightly) for Linux, cache PHP-SDK in Windows by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/192 * Allow numeric strings in number comparisons by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/191 |