Skip Menu |

This queue is for tickets about the JSON CPAN distribution.

Report information
The Basics
Id: 68032
Status: resolved
Priority: 0/
Queue: JSON

People
Owner: Nobody in particular
Requestors: LCONS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.51
Fixed in: (no value)



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).
I fixed incr_parse for string. Thanks! ---- my $json = JSON->new->allow_nonref; $json->incr_parse('"abc'); # if allow_nonref flag on, all right. ----