Interface JsonObjectMarshaller<T>
- Type Parameters:
T
- type of objects to marshal
- All Known Implementing Classes:
GsonJsonObjectMarshaller
,JacksonJsonObjectMarshaller
public interface JsonObjectMarshaller<T>
Strategy interface to marshal an object into a json representation. Implementations are required to return a valid json object.- Since:
- 4.1
- Author:
- Mahmoud Ben Hassine
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
marshal(T object)
Marshal an object into a json representation.
Method Detail
marshal
java.lang.String marshal(T object)
Marshal an object into a json representation.- Parameters:
object
- to marshal- Returns:
- json representation fo the object