title: Python reports "ValueError: No JSON object could be decoded"
body: <p>I got this error message when trying to extract the object into specific elements</p>
  
  <pre><code>Traceback (most recent call last):
    File "twitter_mining.py", line 17, in &lt;module&gt;
      tweets_data = json.loads(tweets_data_path)
    File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
      return _default_decoder.decode(s)
    File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
      raise ValueError("No JSON object could be decoded")
  ValueError: No JSON object could be decoded
  </code></pre>
  
  <p>My code</p>
  
  <pre><code>tweets_data_path = 'data.txt'
  tweets_data = json.loads(tweets_data_path)
  tweets = pd.DataFrame()
  tweets['text'] = map(lambda tweet: tweet['text'], tweets_data)
  </code></pre>
  
  <p>Data - <a href="http://intellij.my/rnd/nlp/sentiment-analysis/data.txt" rel="nofollow noreferrer">http://intellij.my/rnd/nlp/sentiment-analysis/data.txt</a></p>