Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My 'json' looks like:my @rows = $dbh->selectall_arrayref($sql, {Slice => {}}); my $cont = {data => \@rows}; $c->render(json => $cont);
Datatables says "Datatables warning: table id=example - Requested unknown parameter "UNAME" for row 0, col 0. I think my json is badly formed{"data": [[ { "UNAME": "Name Goes Here", "AGE": "Age goes here", "TITLE": "Title goes here" }, more results int he same format ]]}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mojo Lite - Invalid JSON
by Corion (Patriarch) on Feb 28, 2020 at 16:37 UTC | |
by Anonymous Monk on Mar 03, 2020 at 12:38 UTC | |
|
Re: Datatables.js - Invalid JSON
by Anonymous Monk on Feb 29, 2020 at 08:29 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |