violet/streaming-json-encoder
Library for iteratively encoding large JSON documents piece by piece
v1.1.5
2.2M downloads/mo
#4873 most downloaded on Packagist
violet-php/streaming-json-encoder
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 3.4 years
Nearly every release is documented
notes for 7 of 7 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
7 releases · first in 2017
0 releases in the last 12 months
see the full history below
Release timeline
7 releases · Feb 2017 to Dec 2022
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 7-
v1.1.509 Dec 2022 -
v1.1.402 Jan 2022Release notes
Open source →- Improve Github action workflow
- Fix additional PHP 8.1 deprecations
- Fix issue with
JsonStream::getContents()no returning buffer contents
Release notes
Open source →- Improve Github action workflow
- Fix additional PHP 8.1 deprecations
- Fix issue with
JsonStream::getContents()no returning buffer contents
-
v1.1.327 Dec 2021 -
v1.1.229 Nov 2020Release notes
Open source →- HHVM support has been dropped due to HHVM's renewed focus on Hack
- CI build has been migrated to github actions
- The CI build now tests for PHP version from 5.6 to 8.0
Release notes
Open source →- HHVM support has been dropped due to HHVM's renewed focus on Hack
- CI build has been migrated to github actions
- The CI build now tests for PHP version from 5.6 to 8.0
-
v1.1.109 Jul 2017Release notes
Open source →- Return
UNKNOWN_ERRORas error code if valid error constant is not found - Minor improvements to the travis build process
- Slightly improve the bundled autoloader
Release notes
Open source →- Return
UNKNOWN_ERRORas error code if valid error constant is not found - Minor improvements to the travis build process
- Slightly improve the bundled autoloader
- Return
-
v1.1.028 Jun 2017Release notes
Open source →- For
json_encode()compatibility, all objects are encoded as JSON objects
unless they implementTraversableand either return0as the first key or
return no values at all. - Testing for associative arrays is now more memory efficient and fails faster.
- JSON encoding errors now contain the error constant.
- The visibility for
StreamJsonEncoder::write()andBufferJsonEncoder::write()
has been changed to protected (as was originally intended). - A new protected method
AbstractJsonEncoder::getValueStack()has been added
that returns the current unresolved value stack (for special write method
implementations). - An overridable protected method
AbstractJsonEncoder::resolveValue()has
been added which is used to resolve objects (i.e. resolving the value of
closures and objects implementingJsonSerializable).
Release notes
Open source →- For
json_encode()compatibility, all objects are encoded as JSON objects unless they implementTraversableand either return0as the first key or return no values at all. - Testing for associative arrays is now more memory efficient and fails faster.
- JSON encoding errors now contain the error constant.
- The visibility for
StreamJsonEncoder::write()andBufferJsonEncoder::write()has been changed to protected (as was originally intended). - A new protected method
AbstractJsonEncoder::getValueStack()has been added that returns the current unresolved value stack (for special write method implementations). - An overridable protected method
AbstractJsonEncoder::resolveValue()has been added which is used to resolve objects (i.e. resolving the value of closures and objects implementingJsonSerializable).
- For
-
v1.0.026 Feb 2017