Done ticket GEPAFINBE-133 User action api response.

This commit is contained in:
piyushkag
2025-01-07 13:15:25 +05:30
parent 184cda9fd2
commit af5d31b9fe
7 changed files with 222 additions and 2 deletions

View File

@@ -154,6 +154,9 @@ public class Utils {
public static String convertMapIntoJsonString(Map<String, Object> map) {
try {
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JavaTimeModule());
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
mapper.enable(SerializationFeature.INDENT_OUTPUT);
if (MapUtils.isNotEmpty(map)) {
return mapper.writeValueAsString(map);
}