Help for this page
[ { ... } ]
{ "id": 1 ... "name": "jake" "gender": "male" }
my %hash; foreach my $result (@$result) { ... my $json = encode_json \%hash; print $CGI->header( -type => 'application/json' ),$json;