array_map('mysql_real_escape_string', $array);
To encode, I am doing:
Code
Loader::requireOnce('includes/classes/JSON/JSON.php');
$json = new Services_JSON();
$output = $json->encode($array);
$json = new Services_JSON();
$output = $json->encode($array);
However I am getting a parse error on the results. I have tested the encoded JSON at:
http://jsonlint.com/
and it passes as valid.
Suggestions?
