Just came across an issue where my ajax response errored after performing a request to retrieve some data returned as a JSON object. The error returned was INVALID JSON. After a couple minutes of debugging I’ve nailed down the data issue. Turns out jQuery parser doesn’t like having single quotes in the response packet, even if the quotes are correctly escaped such as \’. So watch out!
Advertisement