public static List<String> getResList(String in){
//结果容器
List<String> res_list = new ArrayList<>();
while(true){
//{下标
int b = 0;
b = in.indexOf("{");
//}下标
int e = 0;
e = in.indexOf("}");
//判断结束
if(b==-1||e==-1){
break;
}
res_list.add(in.substring(b, e+1));
in = in.substring(e+1);
}
return res_list;
}
这样输出的数据方便我们使用Gson来转换为对象