Hi internals !
Recently someone enquired about adding a streaming JSON parser to PHP.
Therefore, I just wanted to point your attention to a streaming JSON
parser implementation in C that might be useful:
https://github.com/mnunberg/jsonsl
Kind regards,
Henrik Skov
Hi internals !
Recently someone enquired about adding a streaming JSON parser to PHP.
There's also a JSON library that supports SIMD instructions and 'tree
walking', although that doesn't appear to be exposed in the PHP
extension available for it.
https://github.com/crazyxman/simdjson_php
https://github.com/simdjson/simdjson
My understanding is that FFI could be used to prototype a userland API
for testing different underlying JSON libraries, if anyone has the
time + energy.
cheers
Dan
Ack
it would be amazing to see something like this introduced into PHP natively
in the future.
Hi internals !
Recently someone enquired about adding a streaming JSON parser to PHP.
There's also a JSON library that supports SIMD instructions and 'tree
walking', although that doesn't appear to be exposed in the PHP
extension available for it.https://github.com/crazyxman/simdjson_php
https://github.com/simdjson/simdjsonMy understanding is that FFI could be used to prototype a userland API
for testing different underlying JSON libraries, if anyone has the
time + energy.cheers
Dan
Ack