PHP code example of jojo1981 / json-path-ast-builder

1. Go to this page and download the library: Download jojo1981/json-path-ast-builder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jojo1981 / json-path-ast-builder example snippets




uilder = new \Jojo1981\JsonPathAstBuilder\AstBuilder();
$ast = $astBuilder->buildAst('$.book[?(@.author==$.authors[?(@.pseudo==\'Hugo\')].name)].title');