Using json inputs in Playframework
<p>So I pass parameters, including one Json one, to one of views: </p>

<pre><code>val json: JsValue = Json.toJson(ResultJson.staticResULT)
Ok(views.html.main("")(StaticContent.initialFormContent, json))
</code></pre>

<p>and here is how I receive it in the view: </p>

<pre><code>@import play.api.libs.json.JsValue
@import play.api.libs.json.JsString
@(title: String)(formContent: FormContent, solverResponse: JsValue = JsString(""))
</code></pre>

<p>I want to convert <code>solverResponse</code> to json inside the javascript: </p>

<pre><code>var solverLogJson = JSON.parse("@solverResponse.toString()");
</code></pre>

<p>when I do this, the browser complains that: </p>

<pre><code>VM11598:1 Uncaught SyntaxError: Unexpected token &amp; in JSON at position 1(…)
</code></pre>

<p>Printing the Json it's clear that the quotes " are converted to <code>&amp;quot;</code>. How can I resolve this issue? </p>