New upstream version 4.10000
gregor herrmann
1 year, 10 months ago
0 | 0 |
Revision history for Perl extension JSON::PP.
|
|
1 |
|
|
2 |
4.10 2022-06-24
|
|
3 |
- fix a regression of decode_error introduced at 4.08 (GH#75, reported by andk++)
|
|
4 |
- convert all tests to use Test::More (GH#70, haarg++)
|
1 | 5 |
|
2 | 6 |
4.09 2022-05-22
|
3 | 7 |
- reverted core boolean support for now (GH#72)
|
45 | 45 |
"url" : "https://github.com/makamaka/JSON-PP"
|
46 | 46 |
}
|
47 | 47 |
},
|
48 | |
"version" : "4.09",
|
49 | |
"x_serialization_backend" : "JSON::PP version 4.09"
|
|
48 |
"version" : "4.10",
|
|
49 |
"x_serialization_backend" : "JSON::PP version 4.10"
|
50 | 50 |
}
|
22 | 22 |
resources:
|
23 | 23 |
bugtracker: https://github.com/makamaka/JSON-PP/issues
|
24 | 24 |
repository: https://github.com/makamaka/JSON-PP
|
25 | |
version: '4.09'
|
|
25 |
version: '4.10'
|
26 | 26 |
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
|
9 | 9 |
fallback => 1,
|
10 | 10 |
);
|
11 | 11 |
|
12 | |
$JSON::PP::Boolean::VERSION = '4.09';
|
|
12 |
$JSON::PP::Boolean::VERSION = '4.10';
|
13 | 13 |
|
14 | 14 |
1;
|
15 | 15 |
|
13 | 13 |
use Carp ();
|
14 | 14 |
#use Devel::Peek;
|
15 | 15 |
|
16 | |
$JSON::PP::VERSION = '4.09';
|
|
16 |
$JSON::PP::VERSION = '4.10';
|
17 | 17 |
|
18 | 18 |
@JSON::PP::EXPORT = qw(encode_json decode_json from_json to_json);
|
19 | 19 |
|
|
1308 | 1308 |
}
|
1309 | 1309 |
|
1310 | 1310 |
for my $c ( unpack( $type, $str ) ) { # emulate pv_uni_display() ?
|
1311 | |
my $chr_c = $c;
|
|
1311 |
my $chr_c = chr($c);
|
1312 | 1312 |
$mess .= $chr_c eq '\\' ? '\\\\'
|
1313 | 1313 |
: $chr_c =~ /[[:print:]]/ ? $chr_c
|
1314 | 1314 |
: $chr_c eq '\a' ? '\a'
|
6 | 6 |
|
7 | 7 |
use strict;
|
8 | 8 |
use warnings;
|
9 | |
use Test;
|
|
9 |
use Test::More tests => 5;
|
10 | 10 |
|
11 | 11 |
# main
|
12 | 12 |
{
|
13 | |
BEGIN { plan tests => 5 }
|
14 | |
|
15 | 13 |
BEGIN { $ENV{PERL_JSON_BACKEND} = 0; }
|
16 | 14 |
|
17 | 15 |
use JSON::PP;
|
6 | 6 |
|
7 | 7 |
use strict;
|
8 | 8 |
use warnings;
|
9 | |
use Test;
|
|
9 |
use Test::More tests => 7;
|
10 | 10 |
|
11 | 11 |
# main
|
12 | 12 |
{
|
13 | |
BEGIN { plan tests => 7 }
|
14 | |
|
15 | 13 |
BEGIN { $ENV{PERL_JSON_BACKEND} = 0; }
|
16 | 14 |
|
17 | 15 |
use JSON::PP;
|
4 | 4 |
use warnings;
|
5 | 5 |
use Test::More;
|
6 | 6 |
|
7 | |
BEGIN { plan tests => 6 };
|
|
7 |
BEGIN { plan tests => 7 };
|
8 | 8 |
|
9 | 9 |
BEGIN { $ENV{PERL_JSON_BACKEND} = 0; }
|
10 | 10 |
|
|
40 | 40 |
|
41 | 41 |
is($utf8, ($isASCII) ? "\xf0\x92\x90\x80" : "\xDE\x4A\x41\x41");
|
42 | 42 |
|
|
43 |
eval { $json->decode(q|{"action":"foo" "method":"bar","tid":1}|) };
|
|
44 |
my $error = $@;
|
|
45 |
like $error => qr!""method":"bar","tid"..."!;
|