Interface JSONSerializerListener

    • Method Detail

      • beginDictionary

        default void beginDictionary​(JSONSerializer jsonSerializer,
                                     Dictionary<java.lang.String,​?> value)
        Called when the serializer has begun reading a dictionary value.
        Parameters:
        jsonSerializer - The serializer in question.
        value - The dictionary just started.
      • endDictionary

        default void endDictionary​(JSONSerializer jsonSerializer)
        Called when the serializer has finished reading a dictionary value.
        Parameters:
        jsonSerializer - The serializer in operation.
      • readKey

        default void readKey​(JSONSerializer jsonSerializer,
                             java.lang.String key)
        Called when the serializer has read a dictionary key.
        Parameters:
        jsonSerializer - The active serializer.
        key - The key just read.
      • beginSequence

        default void beginSequence​(JSONSerializer jsonSerializer,
                                   Sequence<?> value)
        Called when the serializer has begun reading a sequence value.
        Parameters:
        jsonSerializer - The serializer.
        value - The sequence just started.
      • endSequence

        default void endSequence​(JSONSerializer jsonSerializer)
        Called when the serializer has finished reading a sequence value.
        Parameters:
        jsonSerializer - The current serializer.
      • readString

        default void readString​(JSONSerializer jsonSerializer,
                                java.lang.String value)
        Called when the serializer has read a string value.
        Parameters:
        jsonSerializer - The active serializer.
        value - The string value just read.
      • readNumber

        default void readNumber​(JSONSerializer jsonSerializer,
                                java.lang.Number value)
        Called when the serializer has read a numeric value.
        Parameters:
        jsonSerializer - The active serializer.
        value - The numeric value just read.
      • readBoolean

        default void readBoolean​(JSONSerializer jsonSerializer,
                                 java.lang.Boolean value)
        Called when the serializer has read a boolean value.
        Parameters:
        jsonSerializer - The serializer.
        value - The boolean value just read.
      • readNull

        default void readNull​(JSONSerializer jsonSerializer)
        Called when the serializer has read a null value.
        Parameters:
        jsonSerializer - The currently active serializer.