title: How to take a dictionary and send a JSON Response
body: <p>I have the following function,</p>
  
  <pre><code>def facebooktest(request):
      fb_value = ast.literal_eval(request.body)
      fb_foodies = Foodie.objects.filter(facebook_id__in = fb_value.values())
      for fb_foodie in fb_foodies:
          state = request.user.relationships.following().filter(username = fb_foodie.user.username).exists()
          userData = {
              'fbid': fb_foodie.facebook_id,
              'followState': int(state),
                  }
  </code></pre>
  
  <p>Basically I am checking to see which of the user's facebook friends are on my django app. If they are, return the followState. The followState basically returns a 1 or a 0. 1 if the user is already following them on my Django app and 0 if they are not following their facebook friend on my Django app.</p>
  
  <p>I would like to return back a json type dictionary to that user that looks like this:</p>
  
  <pre><code>[{fbid:222222222222, followState: 0}, {fbid:111111111111, followState: 1}, {fbid:435433434534, followState:1}]
  </code></pre>
  
  <h1>EDIT</h1>
  
  <p>I have the dictionary structure but I just want to return it like the structure above.</p>