title: can json.loads() take function reslut(string) as input?
body: <p>As I know json.loads() take string as input, so I don't know why below code doesn't work.</p>
  
  <pre><code>import json
  fileref = open("olympics.txt", "r").readline()  # the output is str
  print(fileref)
  print(type(fileref))
  d = json.loads(fileref)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>ExternalError: SyntaxError: Unexpected token N in JSON at position 0 on line 8
  </code></pre>
  
  <p>Thank you!</p>