public static <T extends Collection<K>, K> T convertJsonToArray( String jsonStr, Class<T> clazz, Class<K> innerType, boolean ignoreError) { return jsonStr != null ? BeanTool.parseCollection(jsonStr, clazz, innerType, ignoreError) : null; }
public static <T> T convertJsonToObject(String jsonStr, Class<T> clazz, boolean ignoreError) { return (T) (jsonStr != null ? BeanTool.parse(jsonStr, clazz, ignoreError) : null); }