7 ms·
Does anyone know if the jQuery JSON parser has this fix by any chase?
by _prototype_ 15y ago
Does anyone know if the jQuery JSON parser has this fix by any chase?
- mhansen 15y agojQuery JSON parser will delegate to JSON.parse where available, which doesn't have this problem. Using JSONP with jQuery, you have to directly eval() the response from the server, and you don't control what the server sends - it could send invalid javascript with these code points in it. You can't fix that from the client-side, jQuery can't fix that. The servers have to be patched.