Class JsonUtils


  • public class JsonUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.lang.String toJson​(T obj)  
      static <T> T toObject​(java.lang.String json, java.lang.Class<?> zlass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toJson

        public static <T> java.lang.String toJson​(T obj)
      • toObject

        public static <T> T toObject​(java.lang.String json,
                                     java.lang.Class<?> zlass)
                              throws com.google.gson.JsonSyntaxException
        Throws:
        com.google.gson.JsonSyntaxException