public class JsonUtils extends Object
public static <T> T fromJson(String json, Class<T> T)
T - the generic typejson - the string from which the object is to be deserialized.T - the type of the desired object.Gson.fromJson(String, Class)public static String toJson(Object src)
src - the object for which Json representation is to be created
setting for Gson .Gson.toJson(Object)Copyright © 2017 BotMill. All rights reserved.