Login  |  Packages  |  Support  |  Bugs
Top Level :: Tools and Utilities :: jsonpath :: 3.0.0

jsonpath 3.0.0

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

[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ]

Dependencies for release 3.0.0
PHP Version: PHP 8.0.0 or newer
PEAR Package: PEAR 1.10.0 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Mar 21 17:05:02 2024 UTC
Bandwidth and hardware provided by: pair Networks