my $stmt = qq~SELECT id, entrees FROM menu WHERE ethnicity = ?~; my $entrees = $self->dbh->selectall_arrayref($stmt, {Slice => {}}, $self->query->param('ethnicity')); return $self->json_body( $entrees); #using CGI::App::Plugin::JSON