Map集合中嵌套list

来源:互联网 发布:为什么开不了淘宝店 编辑:程序博客网 时间:2024/06/06 09:44
        Map<String,Object> requestMap = new HashMap<String,Object>();
        List<Map<String,Object>> questionList = new ArrayList<Map<String,Object>>();
        Map<String,Object> questionMap =new HashMap<String,Object>();
        questionMap.put("answerId","1");
        questionMap.put("custom_answer","1");
        questionMap.put("id", "1");
        questionList.add(questionMap);
        requestMap.put("questionList", questionList);
1 0
原创粉丝点击