package com.mcwl.common; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.Map; /** * @author DaiZibo * @date 2025/1/6 * @apiNote */ public class JSONUtils { private static final ObjectMapper mapper = new ObjectMapper(); public static Map jsonToMap(String jsonStr) throws JsonProcessingException { Map map = mapper.readValue(jsonStr, Map.class); return map; } }