On Jul 7, 2018 7:42 AM, "Kamal Sharma" wrote:
>
> hi,
>
> I am facing a problem to get data from database in form of JSON.
>
> data = model.objects.all()
>
> now i have a big list in data and want to convert it into JSON.
> how can i do it.
import json
json_biglist = json.dumps(biglist)
Django m
check - https://docs.djangoproject.com/en/2.0/topics/serialization/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To
check - http://www.django-rest-framework.org/api-guide/serializers/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To
hi,
I am facing a problem to get data from database in form of JSON.
data = model.objects.all()
now i have a big list in data and want to convert it into JSON.
how can i do it.
Thanks
Kamal Sharma
--
You received this message because you are subscribed to the Google Groups
"Django users" gr
4 matches
Mail list logo