Mannix提供的写法result.entrySet().stream().collect(Collectors.toMap(e -> String.valueOf(e.getKey()), Entry::getValue)) 还有一种写法:Map<String, Object> newResult = (Map)result;
Mannix提供的写法
还有一种写法: