title: Data in json format retrieved from a text file can not be read by key names
body: <p>I have a text file with json data stored in UTF-8 like this:</p>
  
  <pre><code>{'name': u'احسان', 'family': u'شیرزادی'}
  </code></pre>
  
  <p>I've tried to read and print file data with this code:</p>
  
  <pre><code>file = open("output.txt", "r")
  text = file.read()
  file.close()
  print text
  </code></pre>
  
  <p>It's OK and exactly as I can see in the file. but when I try to print some part of dictionary by indexes like this:</p>
  
  <pre><code>file = open("output.txt", "r")
  text = file.read()
  file.close()
  print text['name']
  </code></pre>
  
  <p>An error says that:</p>
  
  <pre><code>    print text['name']
  TypeError: string indices must be integers, not str
  </code></pre>
  
  <p>But when I run this code directly I can see It's working:</p>
  
  <pre><code>temp = {'name': u'احسان', 'family': u'شیرزادی'}
  print temp['name']
  </code></pre>
  
  <p>What's the problem here?</p>