Class JSON


  • public class JSON
    extends Object
    JSON helper class.
    • Constructor Detail

      • JSON

        public JSON()
    • Method Detail

      • serialize

        public static String serialize​(Object object)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • deserialize

        public static <T> T deserialize​(String json,
                                        Class<T> type)
                                 throws com.fasterxml.jackson.core.JsonParseException,
                                        com.fasterxml.jackson.databind.JsonMappingException,
                                        IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        IOException