title: Reading JSON file with Python 3
body: <p>I'm using Python 3.5.2 on Windows 10 x64. The <code>JSON</code> file I'm reading is <a href="http://pastebin.com/Yjs6FAfm" rel="noreferrer" title="this">this</a> which is a <code>JSON</code> array containing 2 more arrays.</p>
  
  <p>I'm trying to parse this <code>JSON</code> file using the <code>json</code> module. As described in the <a href="https://docs.python.org/3/library/json.html" rel="noreferrer" title="docs">docs</a> the <code>JSON</code> file must be compliant to <code>RFC 7159</code>. I checked my file <a href="https://jsonformatter.curiousconcept.com/" rel="noreferrer" title="here">here</a> and it tells me it's perfectly fine with the <code>RFC 7159</code> format, but when trying to read it using this simple python code:</p>
  
  <pre><code>with open(absolute_json_file_path, encoding='utf-8-sig') as json_file:
      text = json_file.read()
      json_data = json.load(json_file)
      print(json_data)
  </code></pre>
  
  <p>I'm getting this exception:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Program Files (x86)\JetBrains\PyCharm 4.0.5\helpers\pydev\pydevd.py", line 2217, in &lt;module&gt;
      globals = debugger.run(setup['file'], None, None)
    File "C:\Program Files (x86)\JetBrains\PyCharm 4.0.5\helpers\pydev\pydevd.py", line 1643, in run
      pydev_imports.execfile(file, globals, locals)  # execute the script
    File "C:\Program Files (x86)\JetBrains\PyCharm 4.0.5\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
      exec(compile(contents+"\n", file, 'exec'), glob, loc) 
    File "C:/Users/Andres Torti/Git-Repos/MCF/Sur3D.App/shapes-json-checker.py", line 14, in &lt;module&gt;
      json_data = json.load(json_file)
    File "C:\Users\Andres Torti\AppData\Local\Programs\Python\Python35-32\lib\json\__init__.py", line 268, in load
      parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
    File "C:\Users\Andres Torti\AppData\Local\Programs\Python\Python35-32\lib\json\__init__.py", line 319, in loads
      return _default_decoder.decode(s)
    File "C:\Users\Andres Torti\AppData\Local\Programs\Python\Python35-32\lib\json\decoder.py", line 339, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "C:\Users\Andres Torti\AppData\Local\Programs\Python\Python35-32\lib\json\decoder.py", line 357, in raw_decode
      raise JSONDecodeError("Expecting value", s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  </code></pre>
  
  <p>I can read this exact file perfectly fine on Javascript but I can't get Python to parse it. Is there anything wrong with my file or is any problem with the Python parser?</p>