Skip to content

Commit

Permalink
formate code
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 committed Nov 23, 2023
1 parent 2aba5ed commit c84f5ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dinky-common/src/main/java/org/dinky/utils/JsonUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public static <T> List<T> toList(String json, Class<T> clazz) {
public static Map<String, String> toMap(String json) {
return parseObject(json, new TypeReference<Map<String, String>>() {});
}

public static Map<String, Object> toMap(Object o) {
return objectMapper.convertValue(o, new TypeReference<Map<String, Object>>() {});
}
Expand Down

0 comments on commit c84f5ec

Please sign in to comment.