in reply to Re: Is there a way to make a JSON out of multiple records from MySQL?
in thread Is there a way to make a JSON out of multiple records from MySQL?

> my $typehint_persons = [ ($typehint_person) x @rawRecords ];

For arrays of the same type, there's a function where you don't need to know the number:

my $typehint_persons = json_type_arrayof($typehint_person);

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]