how to convert django query objects in blow formal json

23 views
Skip to first unread message

arvind yadav

unread,
Aug 8, 2018, 6:34:08 AM8/8/18
to Django users


how to convert django query objects in blow formal json


{
title:{
        text: " march 2018 "
      },  
      data: [{        
        type: "column",
        dataPoints: [
          { label: "sv", y: 3},
        ]
      
      
      },
      {        
        type: "line",
        dataPoints: [
          { label: "sv", y: 3},
        
        ]
      }
     ]
}

SACHIN CHAVAN

unread,
Aug 8, 2018, 6:54:42 AM8/8/18
to django...@googlegroups.com
Did you mean to say Django queryset? right?

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/306b365e-7efa-44b1-85b9-eeba3d7cca10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SACHIN CHAVAN

unread,
Aug 8, 2018, 6:57:22 AM8/8/18
to django...@googlegroups.com
use Django rest framework, user serializers for converting queryset into the JSON format

Reply all
Reply to author
Forward
Message has been deleted
0 new messages