标签:pre json 分析 object book www 字符串 djang lin
Django内置的serializers(把对象序列化成json字符串)
from django.core import serializers def test(request): book_list = Book.objects.all() ret = serializers.serialize("json", book_list) return HttpResponse(ret)
标签:pre json 分析 object book www 字符串 djang lin
原文地址:https://www.cnblogs.com/sui776265233/p/9794859.html