Subject: | Incremental parsing does not work with incomplete strings |
Incremental parsing does not work with incomplete strings.
$json->incr_parse('"abc')
dies with:
unexpected end of string while parsing JSON string, at character offset
4 (before "(end of string)")
An incomplete string is just one example of incomplete JSON data so
incremental parsing should allow it (waiting for more data to come).