Subject: | dies on undef |
Json::Tiny 0.48 dies if you feed it undef values instead of encoding to null. Sample code attached.
Subject: | jtdie.pl |
#!/usr/bin/env perl
use strict;
use warnings;
use JSON::Tiny;
my $data = {
a => 1,
b => 'foo',
c => [1, 'bar'],
d => { a => 1, b => 'foo' },
e => undef,
};
my $j = JSON::Tiny->new();
my $jdata = $j->encode($data);
$j->decode($jdata);