Class Json


  • public class Json
    extends Object
    Helper class to convert an object to it's JSON representation and vice versa.
    Author:
    Matthias Müller
    • Constructor Detail

      • Json

        public Json​(DateFormat dateFormat,
                    boolean pretty)
      • Json

        public Json()
    • Method Detail

      • toJson

        public String toJson​(Object o,
                             com.fasterxml.jackson.annotation.JsonInclude.Include include)
                      throws com.fasterxml.jackson.core.JsonProcessingException,
                             IOException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        IOException
      • toJson

        public String toJson​(Object o)
                      throws com.fasterxml.jackson.core.JsonProcessingException,
                             IOException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        IOException