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

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

remorhaz/php-json-pointer
=========================

JSON Pointer (RFC-6901) PHP implementation

v0.7.1(2y ago)8522.9k↓24.1%21MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0

Since Jun 12Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (28)Used By (1)

PHP JSON Pointer
================

[](#php-json-pointer)

[![Latest Stable Version](https://camo.githubusercontent.com/d2c2217e3fa65ca2991d540713d6c81bc68f68537b1db8676981af726e629ce5/68747470733a2f2f706f7365722e707567782e6f72672f72656d6f7268617a2f7068702d6a736f6e2d706f696e7465722f762f737461626c65)](https://packagist.org/packages/remorhaz/php-json-pointer)[![Build](https://github.com/remorhaz/php-json-pointer/actions/workflows/build.yml/badge.svg)](https://github.com/remorhaz/php-json-pointer/actions/workflows/build.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/49b8c62b133bf5d5e9f248fb8a172e8e2c8e6edf66616553901f9e6cd13b446b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72656d6f7268617a2f7068702d6a736f6e2d706f696e7465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/remorhaz/php-json-pointer/?branch=master)[![codecov](https://camo.githubusercontent.com/f91bf676f831e4b3a135b16245f7d2c65dcd2356655c0773c6e002c6c86d5531/68747470733a2f2f636f6465636f762e696f2f67682f72656d6f7268617a2f7068702d6a736f6e2d706f696e7465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/remorhaz/php-json-pointer)[![Mutation testing badge](https://camo.githubusercontent.com/607425f9b3ca0e407849f124c13f7d128240d39c08876d1eb9b6ee630475b277/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324672656d6f7268617a2532467068702d6a736f6e2d706f696e7465722532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/remorhaz/php-json-pointer/master)[![Total Downloads](https://camo.githubusercontent.com/b0708dac664bafcf1b964cf18d0a1710e9308488620833d7ab1daab973f4cf71/68747470733a2f2f706f7365722e707567782e6f72672f72656d6f7268617a2f7068702d6a736f6e2d706f696e7465722f646f776e6c6f616473)](https://packagist.org/packages/remorhaz/php-json-pointer)[![License](https://camo.githubusercontent.com/2233e63354e609a3557d1ddf0db9e0d1385e06e1ebcbeb8329cd84ca2b86151d/68747470733a2f2f706f7365722e707567782e6f72672f72656d6f7268617a2f7068702d6a736f6e2d706f696e7465722f6c6963656e7365)](https://packagist.org/packages/remorhaz/php-json-pointer)

This library implements [RFC6901](https://tools.ietf.org/html/rfc6901)-compliant JSON pointers.

Requirements
------------

[](#requirements)

- PHP 8.1

Features
--------

[](#features)

- Selecting part of a JSON document.
- Removing part of a JSON document.
- Replacing/adding part of a JSON document.

Installation
============

[](#installation)

You will need [composer](https://getcomposer.org) to perform install.

```
composer require remorhaz/php-json-pointer

```

Documentation
=============

[](#documentation)

Accessing JSON document
-----------------------

[](#accessing-json-document)

You can create accessible JSON document either from encoded JSON string or from decoded JSON data using corresponding *node value factory*:

```
