java如何 把多个{}中的多行字符串转换为一行一行的格式
nameisa1b1{"id":"user","path":"/tool","result":10,"score":97,"info":"成功","Log":"2015_...
name is a1 b1{
"id" : "user",
"path" : "/tool",
"result" : 10,
"score" : 97,
"info" : "成功",
"Log" : "2015_09_10_10_12_31_0674",
"seq" : "1"
}
name is a1 b2{
"id" : "user",
"path" : "/tool",
"result" :11,
"score" : 98,
"info" : "成功",
"Log" : "2015_09_10_10_12_32_0175",
"seq" : "2"
} 展开
"id" : "user",
"path" : "/tool",
"result" : 10,
"score" : 97,
"info" : "成功",
"Log" : "2015_09_10_10_12_31_0674",
"seq" : "1"
}
name is a1 b2{
"id" : "user",
"path" : "/tool",
"result" :11,
"score" : 98,
"info" : "成功",
"Log" : "2015_09_10_10_12_32_0175",
"seq" : "2"
} 展开
3个回答
展开全部
根据都好分割,得到数组,然后遍历数组,println换行输出
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
json格式数据解析
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询