Closed zoffixznet closed 7 years ago
Golf'd:
use v6;
use lib 'lib';
use JSON::Tiny;
for 0x80..0x9f {
say .base(16), " ", .uniname;
from-json(qq["{.chr}"]);
}
Output:
80
81
82 BREAK PERMITTED HERE
83 NO BREAK HERE
84
85 NEXT LINE (NEL)
Input (3 characters) is not a valid JSON string
in sub from-json at /home/moritz/p6/json/lib/JSON/Tiny.pm (JSON::Tiny) line 59
in block <unit> at bar.pl line 6
Fixed in 4b5bff11c39cccb723a9141578ee3fe1f2fb5b44. Thanks for the report, @zoffixznet!
This sample sent to me by GitHub's Gist API fails to be decoded: http://temp.perl6.party/Broken.json
But succeeds with JSON::Fast and Perl 5's JSON::Meth, so I suspect there's nothing wrong with that JSON.