How can I remove quotes from a JavaScript object literal only by "function" part? For example:
Before
{ "a3" : { "text" : "function(a1,a2) {return a1+a2 }" }
After removing
{ "a3" : { "text" : function(a1,a2) {return a1+a2 } }
P.S: PHP json_encode puts quotes for each value. I need an object function without quotes.