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
Download (untitled) / with headers
text/plain 343b
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).
Download (untitled) / with headers
text/plain 153b
I fixed incr_parse for string. Thanks! ---- my $json = JSON->new->allow_nonref; $json->incr_parse('"abc'); # if allow_nonref flag on, all right. ----


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.