title: Using pyspark, how do I read multiple JSON documents on a single line in a file into a dataframe?
body: <p>Using Spark 2.3, I know I can read a file of JSON documents like this:</p>
  
  <pre><code>{'key': 'val1'}
  {'key': 'val2'}
  </code></pre>
  
  <p>With this:</p>
  
  <pre><code>spark.json.read('filename')
  </code></pre>
  
  <p>How can I read the following in to a dataframe when there aren't newlines between JSON documents?</p>
  
  <p>The following would be an example input.</p>
  
  <pre><code>{'key': 'val1'}{'key': 'val2'}
  </code></pre>
  
  <p>To be clear, I expect a dataframe with two rows (<code>frame.count() == 2</code>).</p>