in reply to Mojo Lite - Invalid JSON
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 });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mojo Lite - Invalid JSON
by Anonymous Monk on Mar 03, 2020 at 12:38 UTC |