|
|
@@ -135,10 +135,14 @@ public class JsonUtil {
|
|
|
if (object instanceof JSONObject) {
|
|
|
JSONObject jsonObject = (JSONObject) object;
|
|
|
for (Map.Entry<String, Object> entry : jsonObject.entrySet()) {
|
|
|
- map.put(entry.getKey(), String.valueOf(entry.getValue()));
|
|
|
+ map.put(entry.getKey(), valueOf(entry.getValue()));
|
|
|
}
|
|
|
}
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ public static String valueOf(Object obj){
|
|
|
+ return (obj == null) ? "" : obj.toString();
|
|
|
+ }
|
|
|
+
|
|
|
}
|