4 use JSON::Diffable qw( encode_json decode_json );
7 foo => [23, { bar => 19, baz => undef }, 42],
8 bar => { x => undef, y => 17, z => [3..5] },
12 my $json = encode_json($data);
14 is "$json\n", <<'ENDJSON', 'encode';
40 is_deeply decode_json($json), $data, 'decode';