pcrov/jsonreader
JSON Pull Parser
1.0.4
1.4M downloads/mo
#4577 most downloaded on Packagist
pcrov/JsonReader
What this package is like to depend on
Last release 9 months ago
11 Nov 2025
Release timing varies
gaps range from 8 days to 2.6 years
Some releases are documented
notes for 10 of 18 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
18 releases · first in 2016
1 release in the last 12 months
see the full history below
Release timeline
18 releases · Feb 2016 to Nov 2025Releases
latest 18-
1.0.411 Nov 2025Release notes
Open source →What's Changed
- Support for PHP8.4 by @VladimirRebilly in #34
New Contributors
- @VladimirRebilly made their first contribution in #34
Full Changelog: 1.0.3...1.0.4
-
1.0.317 Jun 2024Release notes
Open source →Relaxes the composer constraint on psr/http-message to allow for using v2.
-
1.0.221 Nov 2021Release notes
Open source →The reader should be a bit more memory friendly if you're calling
valueon objects or arrays.Dependence on the Ctype extension has been dropped. That it remained for so long is a testament to my laziness.
-
1.0.129 Oct 2020Release notes
Open source →This release adds support for PHP 8 and drops support for PHP 7.2 and under.
The changes are purely on the testing and requirements side of things, there is nothing to consider when upgrading.
-
1.0.013 Jan 2019Release notes
Open source →This package has been stable for quite a while now, this release just makes that official.
There are no major changes since 0.8.0.
-
0.8.002 Aug 2018Release notes
Open source →Support for PSR-7 streams have been added with a new input stream and associated method on JsonReader,
psr7Stream. -
0.7.113 Mar 2018Release notes
Open source →The parser has been rewritten, and along with further tweaks to the lexer and reader, makes for another performance bump.
There are no API changes in this release.
-
0.7.005 Mar 2018Release notes
Open source →This release features an overhaul in lexing as well as other performance improvements. Things should be a bit faster.
Numbers will no longer be returned as strings from
JsonReader::value(), they will instead be cast automatically to float or int as appropriate while minding the new option below.Added
JsonReader::FLOATS_AS_STRINGSoption is now accepted by theJsonReaderconstructor. This will cause the reader to return floats as their original strings. This includes any JSON number with a decimal point or exponent, as well as those abovePHP_INT_MAXor belowPHP_INT_MIN.
Changed
- The JsonReader node constants are now strings. This makes debugging a bit easier. Note that this also changes the return type of
JsonReader::type()tostring. - The parser, lexer, and input streams are no longer
Traversable. Those using these directly will want to check their new simplified interfaces. - Tuples from the lexer have a new shape to them. Again if you're using this directly you'll want to check the new interface.
-
0.6.426 Feb 2018Release notes
Open source →Most of these we already throwing exceptions, just in the wrong place.
One particularly crafty one wasn't. -
0.6.326 Sep 2016 -
0.6.221 Sep 2016Nothing published for this version
-
0.6.119 Sep 2016Nothing published for this version
-
0.6.019 Sep 2016Nothing published for this version
-
0.5.017 Sep 2016Nothing published for this version
-
0.4.011 Sep 2016Nothing published for this version
-
0.3.008 Mar 2016Nothing published for this version
-
0.2.001 Mar 2016Nothing published for this version
-
0.1.026 Feb 2016Nothing published for this version