You are passing an array with a single element, that is another array full of hashes to Datatables.js. Are you sure that this is what Datatables.js wants?
Maybe it is happier with a simple Array-of-Hashes?
my $rows = $dbh->selectall_arrayref($sql, {Slice => {}}); $c->render( json => { data => $rows });
In reply to Re: Mojo Lite - Invalid JSON
by Corion
in thread Mojo Lite - Invalid JSON
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |