json转对象,奇怪的映射时间:2023-03-09 13:04:55 偶然看见此代码,记录下,将来可能会用到。 ObjectMapper objectMapper = new ObjectMapper(); if (StringUtils.isNotEmpty(variablesJson)) { variables = objectMapper.readValue(variablesJson, HashMap.class); }