title: Python 3.6 return loads(fp.read()) MemoryError with json file
body: <p>I have a ~400MB json file that I'm looking to convert into a dataset of columns and rows.  I'm using the below code to open the file in Jupyter Notebook, but receiving MemoryError:</p>
  
  <pre><code>with open(r'file_path', encoding="utf8") as f:
       data = json.load(f)
  df = pd.io.json.json_normalize(data['rows'])
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>MemoryError                               Traceback (most recent call last)
  &lt;ipython-input-2-79552ba3688b&gt; in &lt;module&gt;()
        1 with open(r'file_path', encoding="utf8") as f:
    --&gt; 2     data = json.load(f)
        3 df = pd.io.json.json_normalize(data['rows'])
  
        C:\Users\...\lib\json\__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
        294 
        295     """
    --&gt; 296     return loads(fp.read(),
        297         cls=cls, object_hook=object_hook,
        298         parse_float=parse_float, parse_int=parse_int,
  
        C:\Users\...\lib\codecs.py in decode(self, input, final)
        319         # decode input (taking the buffer into account)
        320         data = self.buffer + input
    --&gt; 321         (result, consumed) = self._buffer_decode(data, self.errors, final)
        322         # keep undecoded input until the next call
        323         self.buffer = data[consumed:]
  
  MemoryError: 
  </code></pre>
  
  <p>With a 300KB file this code works perfectly.</p>
  
  <p>I tried using 32- and 64-bit python and my [windows] computer has 8GB Ram.  </p>
  
  <p>Any ideas in how to open the file into a data set?</p>
  
  <p>Thanks,
  Naz</p>