|
@@ -123,6 +123,8 @@ public class JsonUtil { |
|
|
return parse(encodeString(map), clazz); |
|
|
return parse(encodeString(map), clazz); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//此方法仅能解析简单属性,准备废弃 |
|
|
|
|
|
@Deprecated |
|
|
public static <T> T parseSimple(Map map, Class<T> clazz) { |
|
|
public static <T> T parseSimple(Map map, Class<T> clazz) { |
|
|
try { |
|
|
try { |
|
|
if (map == null || map.isEmpty()) { |
|
|
if (map == null || map.isEmpty()) { |
|
|