title: Reading JSON file using Python
body: <p>I have a JSON file called 'elements.json':</p>
  
  <pre><code>[
  {ldraw="003238a",lgeo="003238a",slope=0,anton=0,lutz=0,owen=0,damien=0},
  {ldraw="003238b",lgeo="003238b",slope=0,anton=0,lutz=0,owen=0,damien=0},
  {ldraw="003238c",lgeo="003238c",slope=0,anton=0,lutz=0,owen=0,damien=0},
  {ldraw="003238d",lgeo="003238d",slope=0,anton=0,lutz=0,owen=0,damien=0}
  ]
  </code></pre>
  
  <p>I have a Python file called 'test.py':</p>
  
  <pre><code>import json
  
  with open('elements.json') as json_file:  
      data = json.load(json_file)
      for p in data:
          print('ldraw: ' + p['ldraw'])
          print('lgeo: ' + p['lgeo'])
  </code></pre>
  
  <p>Running from the Windows command line I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "test.py", line 4, in &lt;module&gt;
      data = json.load(json_file)
    File "C:\Python27\lib\json\__init__.py", line 278, in load
      **kw)
    File "C:\Python27\lib\json\__init__.py", line 326, in loads
      return _default_decoder.decode(s)
    File "C:\Python27\lib\json\decoder.py", line 366, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode
      obj, end = self.scan_once(s, idx)
  ValueError: Expecting property name: line 2 column 2 (char 3)
  </code></pre>
  
  <p>What property name is expected? Why am I getting the error?</p>