Replace apostrophes in between brackets
<p>I would like to replace " and ' for \" in string that is between { } in PHP using preg_replace().</p>

<p>So:</p>

<pre><code>This is "some" {"text" : 'duudu', 'duuue' : "yey" }
</code></pre>

<p>Should be:</p>

<pre><code>This is "some" {\"text\" : \"duudu\", \"duuue\" : \"yey\" }
</code></pre>

<p>Could you advice on that please?</p>
