Re: Django object to json

2018-07-07 Thread Bob Gailer
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

Re: Django object to json

2018-07-07 Thread Mikhailo Keda
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.

Re: Django object to json

2018-07-07 Thread Mikhailo Keda
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.

Django object to json

2018-07-07 Thread Kamal Sharma
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"