Interface JsonSerializer<T>

All Known Implementing Classes:
BaseJsonSerializer, BodyMessageJsonSerializer

public interface JsonSerializer<T>
This is a common JSON serializer interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deserialize a JSON message to an object.
    serialize(T object)
    Serialize an object to JSON representation.
  • Method Details

    • serialize

      String serialize(T object) throws com.fasterxml.jackson.core.JsonProcessingException
      Serialize an object to JSON representation.
      Parameters:
      object - The object to serialize.
      Returns:
      The JSON representation of the object.
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - If an error occurs during serialization.
    • deserialize

      T deserialize(String message) throws IOException
      Deserialize a JSON message to an object.
      Parameters:
      message - The JSON message to deserialize.
      Returns:
      The deserialized object.
      Throws:
      IOException - If an error occurs during deserialization.