title: How to consume JSON response in Python?
body: <p>I am creating a Django web app.
  There is a function which creates a JSON response like this:</p>
  
  <pre><code>def rest_get(request, token):
      details = Links.get_url(Links, token)
      result={}
      if len(details)>0:
              result['status'] = 200
              result['status_message'] = "OK"
              result['url'] = details[0].url
      else:
              result['status'] = 404
              result['status_message'] = "Not Found"
              result['url'] = None
  
      return JsonResponse(result)</code></pre>
  
  <p>And I get the response in the web browser like this:</p>
  
  <pre><code>{"status": 200, "url": "http://www.bing.com", "status_message": "OK"}
  </code></pre>
  
  <p>Now from another function I want to consume that response and extract the data out of it. How do I do it?</p>