But if your PHP script returns the JSON with the correct Content-Type, you don't need to do that. If you ensure that the PHP script sends Content-Type: application/json, jQuery will automatically parse it before giving it to you. So that's another way to fix the problem.