title: JSON ValueError: Unterminated string
body: <p>My script work, but sometimes crashes with that error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "planetafm.py", line 6, in &lt;module&gt;
      songs = json.loads(json_data)
    File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
      return _default_decoder.decode(s)
    File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
      obj, end = self.scan_once(s, idx)
  ValueError: Unterminated string starting at: line 1 column 32 (char 31)
  </code></pre>
  
  <p>For example, that json causes:</p>
  
  <pre><code>rdsData({"now":{"id":"0052-55","title":"Summertime Sadness (Radio Mix)","artist":"Lana Del Rey","startDate":"2014-09-07 21:48:51","duration":"2014-09-07 21:48:51"}})
  </code></pre>
  
  <p>sourcecode:</p>
  
  <pre><code>import requests, json, re
  
  url = "http://rds.eurozet.pl/reader/var/planeta.json"
  response = requests.get(url)
  json_data = re.match('rdsData\((.*?)\)', response.content).group(1)
  songs = json.loads(json_data)
  print (songs['now']['artist'] + " - " + songs['now']['title']).encode('utf-8')
  </code></pre>
  
  <p>Why that json is invalid? How to fix this?<br>
  Thanks for answers!</p>