How can I split a string containing n concatenated json string in javascript/nodejs?
<p>Let's say I receive this string from a socket server (which I cannot control):</p>

<pre><code>{"data":{"time":"2016-08-08T15:13:19.605234Z","x":20,"y":30}}{"data":{"time":"2016-08-08T15:13:19.609522Z","x":30,"y":40}} 
</code></pre>

<p>I cannot use JSON.parse since it contains 2 Json string so how can I split into</p>

<pre><code>var jsonString1 = {"data":{"time":"2016-08-08T15:13:19.605234Z","x":20,"y":30}}
</code></pre>

<p>and</p>

<pre><code>var jsonString2 = {"data":{"time":"2016-08-08T15:13:19.609522Z","x":30,"y":40}} 
</code></pre>

<p>Note: I may have 1 to n Json strings concatenated in fact</p>