String jsonStr = "{"appUrl":"","wxUrl":"","h5Url":""}";JSONObject jo = JSONObject.parseObject(jsonStr);String value = null;value = (String) JSONPath.eval(jo,"$.wxUrl.Link");// 输出结果System.out.println(value);
avwztpqn1#
jsonStr = "{"h5Url":"","appUrl":"","wxUrl":{"Link":"xxx"}}"
1条答案
按热度按时间avwztpqn1#
jsonStr = "{
"h5Url":"",
"appUrl":"",
"wxUrl":{
"Link":"xxx"
}
}"