title: Accessing large JSON file using python getting error: raise common.JSONError('Additional data')
body: <p>I am parsing a large  JSON dataset(5 GB) using <strong>ijson</strong> package and getting below error.</p>
  
  <pre><code>Traceback (most recent call last):
  File "subreddit_name.py", line 9, in &lt;module&gt;
  for prefix, event, value in parser:
   File "/usr/local/lib/python2.7/dist-packages/ijson/common.py", line 65, in 
   parse
   for event, value in basic_events:
   File "/usr/local/lib/python2.7/dist-packages/ijson/backends/python.py",  
   line 192, in basic_parse
    raise common.JSONError('Additional data')
    ijson.common.JSONError: Additional data
  </code></pre>
  
  <p>here is my python code :</p>
  
  <pre><code>import ijson
  
  file_name="/media/RC_2015-01"
  
  with open(file_name) as file:
      parser = ijson.parse(file)
      for prefix, event, value in parser:
          if prefix=="subreddit":
              print value
  </code></pre>
  
  <p>my json block looks like this :</p>
  
  <blockquote>
    <p>{"subreddit":"languagelearning","parent_id":"t1_cn9nn8v","retrieved_on":1425123427,"ups":1,"author_flair_css_class":"","gilded":0,"author_flair_text":"Lojban (N)","controversiality":0,"subreddit_id":"t5_2rjsc","edited":false,"score_hidden":false,"link_id":"t3_2qulql","name":"t1_cnau2yv","created_utc":"1420074627","downs":0,"body":"I played around with the Japanese Duolingo for awhile and basically if you're not near Fluency you won't learn much of anything.\n\nAs was said below, the only one that really exists is Chineseskill.","id":"cnau2yv","distinguished":null,"archived":false,"author":"Pennwisedom","score":1}</p>
  </blockquote>
  
  <p>does anyone know the reason and solution for this error? 
  any help would be appreciated. Thank you  </p>