PHPackages                             jojo1981/json-path-ast-builder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. jojo1981/json-path-ast-builder

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

jojo1981/json-path-ast-builder
==============================

Json Path AST builder

1.0.0(8mo ago)14MITPHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4CI failing

Since Sep 9Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/jojo1981/json-path-ast-builder)[ Packagist](https://packagist.org/packages/jojo1981/json-path-ast-builder)[ RSS](/packages/jojo1981-json-path-ast-builder/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Json Path AST builder for PHP
=============================

[](#json-path-ast-builder-for-php)

[![Build Status](https://github.com/jojo1981/json-path-ast-builder/actions/workflows/build.yml/badge.svg)](https://github.com/jojo1981/json-path-ast-builder/actions/workflows/build.yml)[![Coverage Status](https://camo.githubusercontent.com/c9e3163904f1093d144229658a0808cbdebdea976655c6ca60a9eb597a08e248/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a6f6a6f313938312f6a736f6e2d706174682d6173742d6275696c6465722f62616467652e737667)](https://coveralls.io/github/jojo1981/json-path-ast-builder)[![Latest Stable Version](https://camo.githubusercontent.com/34c52233588f3850e9ca5b3f02542c480a008a322a877491f5113810ef4a7807/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6a6f313938312f6a736f6e2d706174682d6173742d6275696c6465722f762f737461626c65)](https://packagist.org/packages/jojo1981/json-path-ast-builder)[![Total Downloads](https://camo.githubusercontent.com/47117c76fc446b62d4ec04f14f58ca71afeae423a316d38c2f8bff7bebcc3ea6/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6a6f313938312f6a736f6e2d706174682d6173742d6275696c6465722f646f776e6c6f616473)](https://packagist.org/packages/jojo1981/json-path-ast-builder)[![License](https://camo.githubusercontent.com/808739b07be8992a2f6606fab8aff80cab462e55715f5786a2333f6f3dbfc292/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6a6f313938312f6a736f6e2d706174682d6173742d6275696c6465722f6c6963656e7365)](https://packagist.org/packages/jojo1981/json-path-ast-builder)

Author: Joost Nijhuis &lt;&gt;

A PHP Implementation for building an AST (Abstract Syntax Tree) from a `JSON Path` string.
The AST is visitable and can be visited by implementing a visitor (Behavioral Design Pattern Visitor).

Purposes of this library are:

- Validate JSON Path syntax and give the end user a precise error message about syntax errors
- Transform the AST into some other usable structure
- Travers AST by implementing your own visitor

More information about JSON Path can be found [here](https://goessner.net/articles/JsonPath).

Installation
------------

[](#installation)

### Library

[](#library)

```
git clone https://github.com/jojo1981/json-path-ast-builder.git
```

### Composer

[](#composer)

[Install PHP Composer](https://getcomposer.org/doc/00-intro.md)

```
composer require jojo1981/json-path-ast-builder
```

Usage
-----

[](#usage)

```
