NutzCN Logo
问答 这种格式的String 转成 HashMap Nuzt框架有现成的方法么?
发布于 2305天前 作者 qq_39fcc7a4 1915 次浏览 复制 上一个帖子 下一个帖子
标签:

{"name":"","idCard":"","passportNo":"","startDateShortBefore":"","startDateShortAfter":"","employeeStatusId":"","isSpecificDisease":"","welfareIds":"","welfareStatusIds":"","endDateShortBefore":"","endDateShortAfter":"","recruiterUserId":"","customerIds":"103000006","customerStoreIds":"1030000014","customerPositionIds":"103013547","iLoveFzzlRandomTime":1533105405988,"checkIdCardOrName":true}

7 回复

不是吧,我的是String转成HashMap 啊

Json.fromJson

该怎么写啊?

HashMap conditionMap = Json.fromJson(HashMap.class, DataTypeUtil.toNotNullString(map.get("data")));
我测一下试试

可以了,谢谢

把hashmap改成NutMap更好用

添加回复
请先登陆
回到顶部