PHPackages                             c2is/json-iterator - 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. c2is/json-iterator

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

c2is/json-iterator
==================

Library for Iterate over JSON from a string or an array

044PHP

Since Oct 2Pushed 10y ago24 watchersCompare

[ Source](https://github.com/c2is/JsonIterator)[ Packagist](https://packagist.org/packages/c2is/json-iterator)[ RSS](/packages/c2is-json-iterator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

JsonIterator
============

[](#jsoniterator)

This library allows you to iterate over Json from a string or an array. Uses JsonPath to identify which nodes should be iterated upon.

JSONPath Examples
-----------------

[](#jsonpath-examples)

JSONPathResult`$.store.books[\*].author`the authors of all books in the store`$..author`all authors`$.store..price`the price of everything in the store.`$..books[2]`the third book`$..books[(@.length-1)]`the last book in order.`$..books[0,1]`the first two books`$..books[:2]`the first two books`$..books[?(@.isbn)]`filter all books with isbn number`$..books[?(@.price
