Interface JsonSerializer

  • All Implemented Interfaces:

    
    public interface JsonSerializer<T>
    
                        

    An interface to a custom serializer of objects of the specified type T into Json.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void serialize(T item, @NotNull() JsonWriter jsonWriter) Method called when an object of type T should be serialized.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • serialize

         abstract void serialize(T item, @NotNull() JsonWriter jsonWriter)

        Method called when an object of type T should be serialized.

        Parameters:
        item - The object to serialize.
        jsonWriter - An interface to a writer of Json which should be used to translate fields in item of type T to Json.