LinkedHashMap 转换

应用:

// 4. 反序列化邮件列表List
ObjectMapper mapper = new ObjectMapper();
// 4.1 处理OffsetDateTime反序列化
mapper.registerModule(new JavaTimeModule());
// TypeReference中可以放集合
LinkedHashMap<String, Object> messageList = mapper.convertValue(JSONObject.toJSON(o), new TypeReference<LinkedHashMap<String, Object>>() {
});

参考地址:

https://blog.csdn.net/DmxExcalibur/article/details/93318720