title: Format of a .json file to be loaded in python
body: <p>Here is my JSON file </p>
  
  <pre><code>[{"": "", "User ID": "913fd663bc66a452", "Description": "", "Timestamp": "Jul 09, 2014 10:33 PM", "Session Index": "2", "Platform": "Android", "Version": "0.2.9", "Params": "{ email : soleimaniarmin@yahoo.com;  comments : 09337845621;  stars : 4.0;  name : ari}", "Device": "Samsung Galaxy S4", "Event": "feedback"},{"": "", "User ID": "6e35346f9754b787", "Description": "", "Timestamp": "Jul 09, 2014 04:36 PM", "Session Index": "6", "Platform": "Android", "Version": "0.3.0", "Params": "{ email : eddgrow89@hotmail.com;  comments : i love My live ;  stars : 5.0;  name : eddy}", "Device": "Alcatel  One Touch 6033A", "Event": "feedback"},]
  </code></pre>
  
  <p>I am trying to parse this file in python here is the code:</p>
  
  <pre><code>import json
  from pprint import pprint 
  
  with open('android/2014-07-09.json', 'rb') as json_file:
      contents = json_file.read();
      print contents;
  
  data = json.loads(contents);
  pprint(data);
  </code></pre>
  
  <p>but when I execute it the following error occurs..</p>
  
  <pre><code>ValueError: No JSON object could be decoded
  </code></pre>
  
  <p>and if I replace <code>json.loads</code> with <code>json.load</code> the following error occurs.. </p>
  
  <pre><code>  File "messenger.py", line 9, in &lt;module&gt;
      data = json.load(contents);
    File "/usr/lib/python2.7/json/__init__.py", line 286, in load
      return loads(fp.read(),
    AttributeError: 'str' object has no attribute 'read'
  </code></pre>
  
  <p>How to solve this mystery. </p>