firemail

标题: JsonNode.get("cltp")返回的串中含有双引号 [打印本页]

作者: java    时间: 2017-8-1 16:32
标题: JsonNode.get("cltp")返回的串中含有双引号
举个例子:
{
"cltp": "D02",
"frid": "McLaughlin",
"chel": "aaaa",
"name": "",
"lgid": "",
}
用JsonNode.get("cltp").toString()的方法得到的值是不是D02呢,而是"D02"
会有""。可以用JsonNode.asText()就没有双引号了。





欢迎光临 firemail (http://www.firemail.wang:8088/) Powered by Discuz! X3