import com.alibaba.fastjson.JSONObject; Map<String, Object> map = JSONObject.parseObject(obj.toString(), new TypeReference<Map<String, Object>>(){});