try def get_data(): custdata = db.executesql(qry, as_dict=True) return response.json(custdata.as_list())
also go to this link http://yoururl/app/controller/get_data you should see a json response
try def get_data(): custdata = db.executesql(qry, as_dict=True) return response.json(custdata.as_list())
also go to this link http://yoururl/app/controller/get_data you should see a json response