7 my ($label_in, $ary_ref) = @_;
10 for ( my $i = 0; $i <= $#{ $ary_ref }; $i++ )
12 my $label = "$label_in\[$i\]";
13 dump_item($label, $ary[$i]);
18 my ($label_in, $obj_ref) = @_;
21 foreach my $k (sort keys %obj) {
22 my $label = (length($label_in) > 0) ? "$label_in.$k" : "$k";
25 dump_item($label, $value);
30 my ($label_in, $value) = @_;
31 if (ref($value) eq 'ARRAY') {
32 print "$label_in array\n";
33 dump_array($label_in, $value);
34 } elsif (ref($value) eq 'HASH') {
35 print "$label_in hash\n";
36 dump_hash($label_in, $value);
37 } elsif (defined $value) {
38 print "$label_in $value\n";
40 print "$label_in null\n";
46 my $data = decode_json( $_ );
47 my $label = "row[$row]";
49 dump_hash($label, $data);