public class JsonOps
extends Object
Common JSON utilities.
-
Method Summary
static <T> T
static com.google.gson.JsonElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
-
toJson
public static com.google.gson.JsonElement toJson(Object obj)
-
fromJson
public static <T> T fromJson(String json,
Class<T> clazz)