def convert_to_json_list(db_cursor): json_list = list(json.loads(json_util.dumps(db_cursor))) return json_list