On Wed, Jul 7, 2021 at 12:21 PM Viktor Djupsjöbacka < viktor.djupsjoba...@supermetrics.com> wrote:
> Hi! > > My name is Viktor Djupsjöbacka and I'm a Lead Developer at Supermetrics. > In recent months, we've revived an old, unpublished PHP extension > project for using JSONPath notation in array data lookups. Together with > the original project creator, Mike Kaminski, we've rewritten the whole > extension, enabling it for use in modern PHP versions, improving > performance and maintainability, and covering it with tests. We're now > at the point where we believe the extension is ready for use in the > wider community as a 'jsonpath' PECL package. > > You can find the code at > https://github.com/supermetrics-public/php-ext-jsonpath. > Hi Victor, This extension is really nice and a good use-case for an extension because of the parsing and data processing overhead in PHP vs C. Great work! Does the data structure need to be a full array or can it also work on json_decode with array argument set to false? The name JSONPath obviously refers to the expression as second argument, but its slightly confusing that you put an array into it not a json string. But that makes it more powerful :) As for the classname JSONPath, you could look into namespacing it as per the rules described in https://wiki.php.net/rfc/namespaces_in_bundled_extensions > Best regards, > Viktor > > -- > PECL development discussion Mailing List (https://pecl.php.net/) > To unsubscribe, visit: https://www.php.net/unsub.php > >