Package redis.clients.jedis.json
Interface JsonObjectMapper
- All Known Implementing Classes:
DefaultGsonObjectMapper
public interface JsonObjectMapper
Represents the ability of serialize an object to JSON format string and deserialize it to the
typed object.
- See Also:
-
Method Summary
-
Method Details
-
fromJson
Perform deserialization from JSON format string to the given type object as argument.- Type Parameters:
T- the type object to convert- Parameters:
value- the JSON formatvalueType- the object type to convert- Returns:
- the instance of an object to the type given argument
-
toJson
Perform serialization from object to JSON format string.- Parameters:
value- the object to convert- Returns:
- the JSON format string
-