Angular2 cast string to JSON : <p>What is the right syntax to cast a string to JSON in Angular2?
I tried:</p>

<pre><code>var someString;
someString.toJSON(); //or someString.toJson();
</code></pre>

<p>it says: <code>someString.toJSON is not a function</code></p>

<p>I'm lost because it was working with Angular1.</p>

<hr>

<p>If I try to add an attribute directly on my string (which is formatted like a true JSON):</p>

<pre><code>var someString;
someString.att = 'test';
</code></pre>

<p>it says: <code>TypeError: Cannot create property 'att' on string '...'</code></p>
