Code example for Gson

Methods: fromJson

0
  public static String toJson(Object obj) {
    return instance.gson.toJson(obj);
  } 
 
  public static <T> T fromJson(String json, Class<T> clazz) {
    return instance.gson.fromJson(json, clazz);
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java