Fix alerts problem with parsing JSON.