$var['a'] = 'qwe"qwe'; echo json_encode($var);
{"a":"qwe\"qwe"}
$.parseJSON('{"a":"qwe\"qwe"}');
SyntaxError: Unexpected token q