MCPcopy Create free account
hub / github.com/ddf-project/DDF / toJsonObject

Method toJsonObject

core/src/main/java/io/ddf/util/Utils.java:364–370  ·  view source on GitHub ↗
(String json)

Source from the content-addressed store, hash-verified

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;

Callers 2

serializeMethod · 0.95
deserializeMethod · 0.95

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected