Commit 3882fb2b authored by Spiros Koulouzis's avatar Spiros Koulouzis

We have a bug. The cluster_node_info is set as string not json

parent b38bd2ce
......@@ -105,8 +105,9 @@ public class Converter {
} else if (value instanceof JSONObject) {
value = jsonObject2Map((JSONObject) value);
} else if (value.equals("[]")) {
Logger.getLogger(Converter.class.getName()).log(Level.WARNING, "value: {0} is not JSONArray or an JSONObject", value);
value = null;
value = new ArrayList();
} else if (value.getClass().getName().equals("org.json.JSONObject$Null")) {
value = new String();
}
map.put(key, value);
}
......@@ -122,6 +123,9 @@ public class Converter {
} else if (value instanceof JSONObject) {
value = jsonObject2Map((JSONObject) value);
}
if (value instanceof String) {
System.err.println(value);
}
list.add(value);
}
return list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment