Extract data using JSONPath notation
This extension allows you to use the versatile JSONPath query language to extract the properties that you want from a decoded JSON document.
License: PHP License
| Version | Release | Download |
| 3.1.0 | 2025-12-05 | jsonpath-3.1.0.tgz |
| 3.0.0 | 2025-01-29 | jsonpath-3.0.0.tgz |
| 2.1.1 | 2025-01-26 | jsonpath-2.1.1.tgz |
| 2.1.0 | 2024-01-08 | jsonpath-2.1.0.tgz |
| 2.0.0 | 2023-12-19 | jsonpath-2.0.0.tgz |
| Version | Message |
| 3.1.0 |
## Note This will be the last version that supports PHP 8.0. ## What's Changed * Bump DoozyX/clang-format-lint-action from 0.18 to 0.20 by @dependabot[bot] in https://github.com/supermetrics-public/pecl-jsonpath/pull/196 * Avoid trying to explicitly load OPCache in PHP 8.5 in CI, because OPCache is always included by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/200 * Bump actions/checkout from 4 to 6 by @dependabot[bot] in https://github.com/supermetrics-public/pecl-jsonpath/pull/199 * Bump php/setup-php-sdk from 0.10 to 0.11 by @dependabot[bot] in https://github.com/supermetrics-public/pecl-jsonpath/pull/198 * Run CI tests on PHP 8.5 in Windows, use latest Windows runner image by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/201 * Fix Linux build badge image, add Windows build badge by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/202 * Add support for PHP 8.5 in installation with PIE by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/203 **Full Changelog**: https://github.com/supermetrics-public/pecl-jsonpath/compare/v3.0.0...v3.1.0 |
| 3.0.0 |
## 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 |
| 2.1.1 |
* Add link to PHP Extensions Repository for Windows DLLs by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/180 * Add dependabot configuration by @dawitnida in https://github.com/supermetrics-public/pecl-jsonpath/pull/181 * Bump actions/checkout from 2 to 4 by @dependabot in https://github.com/supermetrics-public/pecl-jsonpath/pull/183 * Bump DoozyX/clang-format-lint-action from 0.12 to 0.17 by @dependabot in https://github.com/supermetrics-public/pecl-jsonpath/pull/182 * Bump schneegans/dynamic-badges-action from 1.0.0 to 1.7.0 by @dependabot in https://github.com/supermetrics-public/pecl-jsonpath/pull/184 * Bump php/setup-php-sdk from 0.8 to 0.9 by @dependabot in https://github.com/supermetrics-public/pecl-jsonpath/pull/185 * Bump DoozyX/clang-format-lint-action from 0.17 to 0.18 by @dependabot in https://github.com/supermetrics-public/pecl-jsonpath/pull/186 * Add composer.json for compatibility with PIE by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/187 * Fix segmentation fault when matching regex string against non-string values by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/190 |
| 2.1.0 |
* Add support for PHP 8.4 (nightly) and run tests also on PHP 8.4 by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/176 * Remove some tests specific to PHP 7 by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/177 |
| 2.0.0 |
* Drop support for PHP 7.4 by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/172 * Test with PHP 8.3 on Windows, unify naming and formatting in workflow files by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/173 |