If you do not want to use my code, try (untested)
my $json = Cpanel::JSON::Dump( map { ( { 'dns_record' => $_ } ) } @dns +_record );
In reply to Re^7: How to read Array
by hdb
in thread How to read Array
by sunilgame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |