streaming-json-encoder
streaming-json-encoder copied to clipboard
PHP library for iteratively encoding large JSON documents piece by piece
bump version to current http-message spec - need to increase php versions but the ones dropped are eol anyway and newer framework releases are enforcing psr/http-message 2.0 these days. -...
If it is possible to use a stream as a resource, then it is better to use it than callbacks. It will consume less resources.
We restrict the selection to only JSON category constants so as not to check all constants.
If a BufferJsonEncoder encodes a Generator, or a value that points to a Generator, JsonStream is no longer seekable. This breaks passing JsonStream as the response body of some frameworks....