completed zesa journey
This commit is contained in:
@@ -39,7 +39,7 @@ public class Utils {
|
||||
public static String getUid(){
|
||||
return UUID.randomUUID().toString();
|
||||
}
|
||||
public static <T> T getJson(String json, Class<T> clazz){
|
||||
public static <T> T fromJson(String json, Class<T> clazz){
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
mapper.setDateFormat(new StdDateFormat().withColonInTimeZone(true));
|
||||
@@ -56,7 +56,7 @@ public class Utils {
|
||||
return (T) obj;
|
||||
}
|
||||
|
||||
public static String setJson(Object obj){
|
||||
public static String toJson(Object obj){
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
mapper.setDateFormat(new StdDateFormat().withColonInTimeZone(true));
|
||||
|
||||
Reference in New Issue
Block a user