How do I read multiple JSON structures contained in one file?
<p>I have a .txt file with this structure</p>

<pre><code>section1#[{"p": "0.999834", "tag": "MA"},{"p": "1", "tag": "MO"},...etc...}]
section1#[{"p": "0.9995", "tag": "NC"},{"p": "1", "tag": "FL"},...etc...}]
...
section2#[{"p": "0.9995", "tag": "NC"},{"p": "1", "tag": "FL"},...etc...}]
</code></pre>

<p>I am trying to read it by using R with the commands</p>

<pre><code>library(jsonlite)
data &lt;- fromJSON("myfile.txt")
</code></pre>

<p>But I get this</p>

<pre><code>Error in feed_push_parser(readBin(con, raw(), n), reset = TRUE) : 
  lexical error: invalid char in json text.
                                       section2#[{"p": "0.99
                     (right here) ------^
</code></pre>

<p>How can I read it even by splitting by sections?</p>