json_encode puts quote inside of string
<p>I am using PHP to create a JSON-object that my JavaScript application parses using the JSON.parse method. However, the output from json_encode is a little weird. In a string i have a double quote mark. PHP doesn't escape this  quote mark, meaning that in the middle of my json-string there is a quote mark making the JSON invalid.</p>

<p>I suspect that this has something to do with the server configuration, which i sadly cannot do anything about since it's shared hosting. How can i solve this?</p>

<p>PHP version is 5.3.21.</p>

<p>Here is an example of the JSON that json_encode outputs.</p>

<pre><code>{
    "id": "36",
    "row": "60",
    "placement": "Korridor",
    "material": "Gummislang 3/4" 30m(infälltskåp)",
}
</code></pre>

<p>As you can see, there is a double quote in the value for the key "material". I would expect it to escape the double quote sign giving me this</p>

<pre><code>{
    "id": "36",
    "row": "60",
    "placement": "Korridor",
    "material": "Gummislang 3/4\" 30m(infälltskåp)",
}
</code></pre>
