title: JSON object must be str, not 'bytes'
body: <p>Using Python 3.5.1, I pulled in a text file where each line is in JSON form:
  {"a":"windows", "b":"stairs"...}</p>
  
  <pre><code>import json
  path = 'folder/data.txt'
  records=[json.loads(line) for line in open(path,'rb')]
  </code></pre>
  
  <p>But I received the error:</p>
  
  <pre><code>the JSON object must be str, not 'bytes'
  </code></pre>
  
  <p>I have no problem printing the first line of file, so I am reassured that the file path is correct.</p>