or simply
def ajax_call():
return db(...).select(...).json()
or
def ajax_call():
return dict(rows=db(...).select(...).as_list())
and call the action with .json
On Feb 20, 12:20 pm, Vasile Ermicioi <[email protected]> wrote:
> in controller
>
> def ajax_call():
> rows = db(...).select(...).as_list()
> return response.json(rows)

