let's suppose I have the following array:
$res['results']='{"key":"value"}';
$res['status']='OK';
and I json_encode that array:
var_dump(json_encode($res));
This is the result (double quotes are escaped):
{"results":"{\"key\":\"value\"}","status":"OK"}
But I want this result (double quotes not escaped):
{"results":"{"key":"value"}","status":"OK"}
What's the correct way to accomplish my goal, supposing that the array is a bit more complicated and I don't know which values are json themselves?
Thanks very much