SyntaxError: Unexpected token Q
<p>Using this code in Chrome Console I get an error</p>

<pre><code>SyntaxError: Unexpected token Q
</code></pre>

<p>What I need is to convert input in an object using JSON.parse().</p>

<p>Any idea how to fix this error?</p>

<pre><code>var input = 'QR|BEGIN:VEVENT\r\nSUMMARY:Event test 18 APrile\r\nDTSTART:20130418T085900Z\r\nDTEND:20130418T105900Z\r\nLOCATION:Class 18\r\nDESCRIPTION:Desc 18 APrile\r\nEND:VEVENT';

    var output = input.split(/\r\n/);
    output = "{" + output  + "}";
    alert(output);

    var outputJson = JSON.parse(output);
    console.log(outputJson);
</code></pre>
