title: Django expected string or buffer in json loads
body: <p>So i am getting a <code>expected string or buffer</code> in django when i try to parse a Json string sent from a php source to django client using urllib to fetch the request.
  I am using a celery task also.</p>
  
  <p>The string is:</p>
  
  <pre><code>"511bd5112aa8c"
  </code></pre>
  
  <p>Php:</p>
  
  <pre><code>echo json_encode($access_token);
  </code></pre>
  
  <p>Django:</p>
  
  <pre><code>from celery import task
  from urllib2 import Request, urlopen, URLError
  
  @task()
  def replicate_data(req):
          try:
              response = urlopen(req)
              the_page = response.read()
          except URLError:
              raise replicate_data.retry(countdown=15)
  
          return the_page
  
  
  
  result=replicate_data.apply_async((req,), queue='rep_data')
  json.loads(result)
  </code></pre>
  
  <p>i have already tried <code>json.loads(result.decode())</code> with no luck also.</p>
  
  <p>anyone?</p>