return json.dumps(d)
------------------------------------------------------------------------------------------------------
result1=pagination(page,rows1)
for credit in result1:
rows.append(credit.as_dict(‘id‘,‘title‘,‘week_rule‘,‘latefee_rate‘,‘extra_cost_rate‘,‘due_days‘,‘remark‘))
return json.dumps(credit_result)
python flask model 序列化,布布扣,bubuko.com
原文地址:http://blog.csdn.net/fanyunlei/article/details/31775133