![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: make duplicate JSON keys an errorby sedusedan (Pilgrim) |
on Oct 26, 2013 at 12:28 UTC ( [id://1059815]=note: print w/replies, xml ) | Need Help?? |
It's because in Randal's code some whitespaces are not allowed. Here's the version that allows more whitespaces and parses the above example: Regexp.pm (it'll soon be on CPAN as JSON::Decode::Regexp 0.03). Also, here's a version that checks for duplicate keys: Regexp.pm.
In Section
Seekers of Perl Wisdom
|
|