Skip Menu |

This queue is for tickets about the JSON-Tiny CPAN distribution.

Report information
The Basics
Id: 95767
Status: resolved
Worked: 5 min
Priority: 0/
Queue: JSON-Tiny

People
Owner: Nobody in particular
Requestors: GVL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.48
Fixed in: (no value)



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);
On Sun May 18 09:12:11 2014, GVL wrote: Show quoted text
> Json::Tiny 0.48 dies if you feed it undef values instead of encoding > to null. Sample code attached.
Thanks for your report. This has been fixed in JSON::Tiny v0.49, which has been uploaded to CPAN on May 18, 2014.