Done ticket GEPAFINBE-178
This commit is contained in:
@@ -788,4 +788,12 @@ public class Utils {
|
||||
public static boolean isValidBoolean(String value) {
|
||||
return "true".equalsIgnoreCase(value) || "false".equalsIgnoreCase(value);
|
||||
}
|
||||
public static Map<String, Object> convertJsonStringToMap(String jsonString) {
|
||||
try {
|
||||
return mapper.readValue(jsonString, Map.class);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace(); // Handle the exception
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user