Map<String, Object> parmMap = new HashMap<>();
parmMap.put(“id”, “1”);
parmMap.put(“name”, “张三”);
parmMap.put(“age”, “35”);
parmMap.put(“gender”, “男”);
User user = JSON.parseObject(JSON.toJSONString(parmMap), User.class);
10-13
974
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-24
3302
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)