title: Django list of json objects
body: <p>I have a django backend and from my view I want to return a list of json objects. </p>
  
  <pre><code>@api_view(('GET',))
  def get_analytics(request):
      # Number of users who dogged in once to our system today
      login_count=  User.objects.filter(last_login__startswith=
          timezone.now().date()).count() # returns int
      finished_count = Exercise_state.objects.filter(exercise_id=7, progress=2).count()
      # returns int
  
      count_list=[]
      count_list.append(login_count)
      count_list.append(finished_count)
  
      data = {}
      data['login_count'] = login_count
      data['finish_count'] = finished_count
      json_data = json.dumps(data)
  
      return Response(json_data)
  </code></pre>
  
  <p>This returns <code>"{\"finish_count\": 1, \"login_count\": 2}"</code> However what I want is something like <code>[{"login_count": 2, "finished_count": 3}]</code></p>
  
  <p>How can I achieve this?</p>