title: Unable to convert dictionary object to JSON object
body: <p>I want to convert my dictionary object as a JSON as i need to send it in ReactJS file. My code is below:</p>
  
  <pre><code>def get(self, request, pk, format = None):
      queryset = SocialAccount.objects.filter(provider='twitter').get(id=pk)
      user_id= queryset.uid
      name = queryset.extra_data['name']
      username = queryset.extra_data['screen_name']
      data = {'user_id':user_id,'name':name,'username':username}
      data = json.dumps(data)
      print(type(json.loads(data)))
      return Response(json.loads(data))
  </code></pre>
  
  <p>In this view, I got " class 'dict' " in "print(type(json.loads(data)))" line instead of JSON object. If i am going wrong, please guide me. What i need to do?
  Thanks.</p>