Javascript object literal function
<p>How can I remove quotes from a JavaScript object literal only by "function" part? For example:</p>

<p>Before</p>

<pre><code>{ "a3" : { "text" : "function(a1,a2) {return a1+a2 }" }
</code></pre>

<p>After removing</p>

<pre><code>{ "a3" : { "text" : function(a1,a2) {return a1+a2 } }
</code></pre>

<p>P.S: PHP <code>json_encode</code> puts quotes for each value. I need an object function without quotes.</p>
