PHPackages                             ergebnis/json-pointer - 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. ergebnis/json-pointer

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

ergebnis/json-pointer
=====================

Provides an abstraction of a JSON pointer.

3.7.1(8mo ago)2021.8M—7.2%5MITPHPPHP ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

Since Jan 28Pushed today1 watchersCompare

[ Source](https://github.com/ergebnis/json-pointer)[ Packagist](https://packagist.org/packages/ergebnis/json-pointer)[ Docs](https://github.com/ergebnis/json-pointer)[ RSS](/packages/ergebnis-json-pointer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (19)Used By (5)

json-pointer
============

[](#json-pointer)

[![Integrate](https://github.com/ergebnis/json-pointer/workflows/Integrate/badge.svg)](https://github.com/ergebnis/json-pointer/actions)[![Merge](https://github.com/ergebnis/json-pointer/workflows/Merge/badge.svg)](https://github.com/ergebnis/json-pointer/actions)[![Release](https://github.com/ergebnis/json-pointer/workflows/Release/badge.svg)](https://github.com/ergebnis/json-pointer/actions)[![Renew](https://github.com/ergebnis/json-pointer/workflows/Renew/badge.svg)](https://github.com/ergebnis/json-pointer/actions)

[![Code Coverage](https://camo.githubusercontent.com/4a6ce843d8b3018d75a7ad6e456a16274ceef2cec28df4ca99f21909dca2aab7/68747470733a2f2f636f6465636f762e696f2f67682f65726765626e69732f6a736f6e2d706f696e7465722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/ergebnis/json-pointer)

[![Latest Stable Version](https://camo.githubusercontent.com/694cecedc172ecc7e2e855a07d6e7fd10b447f94108e8e42e3a3f7f6e4b81f14/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f6a736f6e2d706f696e7465722f762f737461626c65)](https://packagist.org/packages/ergebnis/json-pointer)[![Total Downloads](https://camo.githubusercontent.com/3ae14a2852a15bbe99c50fcccea2a0f93bf6da66752a0c04c75963cede9884cd/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f6a736f6e2d706f696e7465722f646f776e6c6f616473)](https://packagist.org/packages/ergebnis/json-pointer)[![Monthly Downloads](https://camo.githubusercontent.com/bda797594e295e18f02c3523e9c52f226826bd208a968d1db8969ccc8500d3b8/687474703a2f2f706f7365722e707567782e6f72672f65726765626e69732f6a736f6e2d706f696e7465722f642f6d6f6e74686c79)](https://packagist.org/packages/ergebnis/json-pointer)

This project provides a [`composer`](https://getcomposer.org) package with an abstraction of a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901).

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

[](#installation)

Run

```
composer require ergebnis/json-pointer
```

Usage
-----

[](#usage)

### `ReferenceToken`

[](#referencetoken)

You can create a `ReferenceToken` from a `string` value:

```
