Subject: | dealing with circular data structures |
Data::Clean::JSON goes into an endless loop when faced with circular data
structures.
JSON can't serialise circular data structures, so in an ideal world
detecting, and possibly unpicking such structures seems like a good
ability for Data::Clean::JSON to have.
Subject: | dcj-cycles.t |
use Test::More tests => 1;
use Data::Clean::JSON;
my $array = [1, 2, 3];
my $data = { array => $array };
push @$array, $data;
Data::Clean::JSON::->new->clone_and_clean($data);
ok 1;