[bug 959270] - Fixed indentation, wrapped JSON.parse into try..catch block