title: AttributeError: 'str' object has no attribute 'loads', json.loads()
body: <p>snippets</p>
  
  <pre><code>    import json
      teststr = '{"user": { "user_id": 2131, "name": "John", "gender": 0,  "thumb_url": "sd", "money": 23, "cash": 2, "material": 5}}'
      json = json.load(teststr)
  </code></pre>
  
  <p>throws an exception</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;input&gt;", line 1, in &lt;module&gt;
  AttributeError: 'str' object has no attribute 'loads'
  </code></pre>
  
  <p>How to solve a problem?</p>