Class JsonMapper
java.lang.Object
dev.lydtech.component.framework.mapper.JsonMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TreadFromJson(String json, Class<T> clazz) Map the given JSON String to the required class type.static StringwriteToJson(Object obj) Map the given Object to a JSON String.
-
Constructor Details
-
JsonMapper
public JsonMapper()
-
-
Method Details
-
readFromJson
Map the given JSON String to the required class type.- Throws:
MappingException
-
writeToJson
Map the given Object to a JSON String.- Throws:
MappingException
-