Use JSON.parse() by default, and fallback to eval() in data.decodeJson().