in reply to Parsing the data returned from the companies house API
for my $key (keys %$decodedJSON) { if (is_hashref($decodedJSON->{$key})) { print "$key is another hash\n"; } elsif(is_arrayref($decodedJSON->{$key})){ print "$key is an array ref\n"; } else{ print Dumper($key); print "$key is neither a hashref nor an arrayref\n"; } }
|
|---|