$json->{data} = $dbh->selectall_arrayref('SELECT idnum, fname FROM dbuser', {Slice => {}} ); print $json ; #### HASH(0x55e405886718)