str = null;\r
}\r
// append the content to the XML output\r
- if (key.equals("content")) {\r
+ if ("content".equals(key)) {\r
if (curObj instanceof JSONArray) {\r
jsonArr = (JSONArray) curObj;\r
len = jsonArr.length();\r
\r
try {\r
Object rawValue = getJsonRawValue(jsonStr, keys);\r
- if (rawValue == null) {\r
- return false;\r
- } else {\r
- return true;\r
- }\r
+\r
+ return !(rawValue == null);\r
+\r
} catch (Exception e) {\r
msoLogger.debug("jsonElementExist(): unable to determine if json element exist. Exception is: " + e.toString(),e);\r
}\r