title: Reading huge json file in python
body: <p>I am having trouble reading big JSON file. My file size is around 6GB. I I have already tried ijson to read it like a stream--item by item-- with the  following line:</p>
  
  <pre><code>f = open(path, 'rb')
  for row in ijson.items(f, 'Row'):  
    //do something
  </code></pre>
  
  <p>and I got "memory error"/"Killed" error from python shell. I think its not a memory issue coz I have enough on my system. around 3GB of swap and 20 GB RAM.</p>
  
  <p>Now I know ijson reads line a stream but my problem is that the whole 6GB file is a single line so jitem.items won't help either. Can anyone please suggest me a solution how can I do this read efficiently without running into memory issues. My JSON looks something like this </p>
  
  <pre><code>{Row:[{
      "Cell": [
          {
              "$": "blabla",
              "column": "blala",
              "timestamp": 1494589152912
          },
          {
              "$": "blal bla",
              "column": "blala",
              "timestamp": 1494589152916
          },
      ],
      "key": "blalaa"
  }]}
  </code></pre>