I pass php array like
[sit_latitude] => 20° 23.298\' N
inside json_encode(); and output is like,
{\"sit_latitude\":null} <
You could try htmlspecialchars() function http://php.net/manual/en/function.htmlspecialchars.php