(String json)
| 362 | } |
| 363 | |
| 364 | private static JsonObject toJsonObject(String json) { |
| 365 | JsonElement jElement = new JsonParser().parse(json); |
| 366 | if (jElement == null) return null; |
| 367 | |
| 368 | JsonObject jObj = jElement.getAsJsonObject(); |
| 369 | return jObj; |
| 370 | } |
| 371 | |
| 372 | public static Object deserialize(String json) throws DDFException { |
| 373 | if (Strings.isNullOrEmpty(json) || "null".equalsIgnoreCase(json.trim())) return null; |
no test coverage detected