Download the PHP package c2is/json-extractor without Composer
On this page you can find all versions of the php package c2is/json-extractor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download c2is/json-extractor
More information about c2is/json-extractor
Files in c2is/json-extractor
Download c2is/json-extractor
More information about c2is/json-extractor
Files in c2is/json-extractor
Vendor c2is
Package json-extractor
Short Description Library for extracting JSON from a string or DomDocument object
License GPL-3.0+
Homepage http://github.com/
Package json-extractor
Short Description Library for extracting JSON from a string or DomDocument object
License GPL-3.0+
Homepage http://github.com/
Please rate this library. Is it a good library?
Informations about the package json-extractor
JsonExtractor
This library allows you to extract Json from a string/json/array using JsonPath.
JSONPath Examples
JSONPath | Result |
---|---|
$.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<10)] |
filter all books cheapier than 10 |
$..* |
all elements in the data (recursively extracted) |
Expression syntax
Symbol | Description |
---|---|
$ |
The root object/element (not strictly necessary) |
@ |
The current object/element |
. or [] |
Child operator |
.. |
Recursive descent |
* |
Wildcard. All child elements regardless their index. |
[,] |
Array indices as a set |
[start:end:step] |
Array slice operator borrowed from ES4/Python. |
?() |
Filters a result set by a script expression |
() |
Uses the result of a script expression as the index |
All versions of json-extractor with dependencies
PHP Build Version
Package Version
The package c2is/json-extractor contains the following files
Loading the files please wait ....