title: Decode text response from API in Python 3.6
body: <p>I am trying to extract data from mailchimp export api, which returns responses based on the following specifications:</p>
  
  <pre><code>    Returns:
  </code></pre>
  
  <p>Parameter -     text    </p>
  
  <p>Description:
  a plain text dump of JSON objects. The first row is a header row. Each additional row returned is an individual JSON object. Rows are delimited using a newline (\n) marker, so implementations can read in a single line at a time, handle it, and move on.</p>
  
  <p>To get the data I am using:</p>
  
  <pre><code>response = requests.get(urldetails).text
  </code></pre>
  
  <p>If I use .json() it errors out with a JSON decode error. The output of the above is something along the lines of:</p>
  
  <p>{data..}
  {data...}</p>
  
  <p>I am unsure whether each dict is on a separate row, however I am under the impression it's actually just one continuous string as many of my attempts to decode it ended up with an error 'str' object cannot be...etc. . I don't see the '\n' separators anywhere when I am using the .text method. </p>
  
  <p>What's the best way of going about and make each dict a separate item in a list or a row in a dataframe (which I can unpack later).</p>
  
  <p>Thanks</p>