in reply to How to convert nested arrayref to JSON data?
use JSON::Any; $json = JSON::Any->new()->encode( $yourAofA ); [download]