django框架学习:十四.django 查询结果转json (14)

获得的返回数据如下:

{"data": [{"user_name": "liushui", "psw": "123456", "mail": "123456@163.com"}, {"user_name": "liushui0", "psw": "12345", "mail": "123@qq.com"}, {"user_name": "liushui1", "psw": "123", "mail": "123456@qq.com"}, {"user_name": "liushui11", "psw": "123456", "mail": "897564"}]}   {"result": [{"model": "ke24.user", "pk": "liushui", "fields": {"psw": "123456", "mail": "123456@163.com"}}, {"model": "ke24.user", "pk": "liushui0", "fields": {"psw": "12345", "mail": "123@qq.com"}}, {"model": "ke24.user", "pk": "liushui1", "fields": {"psw": "123", "mail": "123456@qq.com"}}, {"model": "ke24.user", "pk": "liushui11", "fields": {"psw": "123456", "mail": "897564"}}]}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzspsz.html