I\'m creating a JSON string from a PHP array. I\'ve encoded it using json_encode().
json_encode()
$data = array( \'title\' => \'Example string\\\'s wit
I just ran into this problem and the actual issue was that I forgot to add a proper application/json header before spitting out the actual JSON data.
header('Content-Type: application/json');