String result=你的字符串;
Pattern p = Pattern.compile("(“timePoint”: )([0-9]*)");
Matcher m = p.matcher(resultStr);
while (m.find()) {
String findResult=m.group(2);
//fineResult就是你要的值
}
java怎么遍历json取出需要的内容
最新推荐文章于 2021-02-26 18:25:25 发布
String result=你的字符串;
Pattern p = Pattern.compile("(“timePoint”: )([0-9]*)");
Matcher m = p.matcher(resultStr);
while (m.find()) {
String findResult=m.group(2);
//fineResult就是你要的值
}