Package cn.boboweike.carrot.utils.mapper
Interface JsonMapper
-
- All Known Implementing Classes:
GsonJsonMapper,JacksonJsonMapper
public interface JsonMapperJsonMapper that will transform Tasks (and their TaskParameters) to Json and back for both storage in the database and for use in the dashboard.If you need to create your own JsonMapper, it must pass the
JsonMapperValidator.validateJsonMapper(JsonMapper)method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tdeserialize(String serializedObjectAsString, Class<T> clazz)voidserialize(OutputStream outputStream, Object object)Stringserialize(Object object)
-