summaryrefslogtreecommitdiff
path: root/cpan/JSON-PP/lib/JSON/PP.pm
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/JSON-PP/lib/JSON/PP.pm')
-rw-r--r--cpan/JSON-PP/lib/JSON/PP.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpan/JSON-PP/lib/JSON/PP.pm b/cpan/JSON-PP/lib/JSON/PP.pm
index 2475fe1e87..ff23fc7c0f 100644
--- a/cpan/JSON-PP/lib/JSON/PP.pm
+++ b/cpan/JSON-PP/lib/JSON/PP.pm
@@ -14,7 +14,7 @@ use JSON::PP::Boolean;
use Carp ();
#use Devel::Peek;
-$JSON::PP::VERSION = '4.06';
+$JSON::PP::VERSION = '4.07';
@JSON::PP::EXPORT = qw(encode_json decode_json from_json to_json);
@@ -1563,6 +1563,11 @@ sub incr_parse {
}
}
+ unless ( $coder->get_utf8 ) {
+ utf8::upgrade( $self->{incr_text} );
+ utf8::decode( $self->{incr_text} );
+ }
+
my ($obj, $offset) = $coder->PP_decode_json( $self->{incr_text}, 0x00000001 );
push @ret, $obj;
use bytes;
@@ -1770,10 +1775,6 @@ JSON::PP - JSON::XS compatible pure-Perl module.
use JSON;
-=head1 VERSION
-
- 4.05
-
=head1 DESCRIPTION
JSON::PP is a pure perl JSON decoder/encoder, and (almost) compatible to much