Interface JsonSerializer<T>
- All Known Implementing Classes:
BaseJsonSerializer
,BodyMessageJsonSerializer
public interface JsonSerializer<T>
This is a common JSON serializer interface.
-
Method Summary
-
Method Details
-
serialize
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
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.
-