Parse incorrect JSON
<p>I use JSON to send data to websocket. Sometimes websocket recive many messages as one, and event.data looks like:</p>

<pre><code>{"message1":"message1"}{"message2":"message2"}
</code></pre>

<p>so i can't parse it with JSON.Parse. How to handle this problem?</p>