public <T> List<T> fromCurrentList(final String json, final Class<T> clazz) {
        return GSON.fromJson(json, TypeToken.getParameterized(CopyOnWriteArrayList.class, clazz).getType());
    }
From current list.

@param <T> the type parameter
@param json the json
@param clazz the clazz
@return the list
shenyu-common/src/main/java/org/apache/shenyu/common/utils/GsonUtils.java