Class JsonRepresenter


  • public class JsonRepresenter
    extends Representer
    Represent data structures into Nodes in the way suitable for serialisation as JSON
    • Constructor Detail

      • JsonRepresenter

        public JsonRepresenter​(DumperOptions options)
    • Method Detail

      • getTag

        protected Tag getTag​(Class<?> clazz,
                             Tag defaultTag)
      • addClassTag

        public Tag addClassTag​(Class<? extends Object> clazz,
                               Tag tag)
        Define a tag for the Class to serialize.
        Parameters:
        clazz - Class which tag is changed
        tag - new tag to be used for every instance of the specified Class
        Returns:
        the previous tag associated with the Class
      • getTimeZone

        public TimeZone getTimeZone()
      • setTimeZone

        public void setTimeZone​(TimeZone timeZone)