Package org.jdbi.v3.json
Interface JsonMapper
- All Known Implementing Classes:
UnimplementedJsonMapper
public interface JsonMapper
Deserializes JSON to Java objects, and serializes Java objects to JSON.
Implement this interface and
JsonConfig.setJsonMapper(JsonMapper)
it
to be able to convert objects to/from JSON between your application and database.
jdbi3-jackson2 and jdbi3-gson2 are readily available for this.-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(Type type, String json, ConfigRegistry config) toJson
(Type type, Object value, ConfigRegistry config)
-
Method Details
-
toJson
-
fromJson
-