java怎么解析多层嵌套的json得到每个元素
用Jackson我只会做后面的数组部分{"result":{"cases":{"page":1,"pagesize":10,"totalrows":11,"pages":...
用Jackson我只会做后面的数组部分
{"result":{"cases":{"page":1,"pagesize":10,"totalrows":11,"pages":2,"sort":" -createtime",
"results":[
{"Id":111111,"No":null,"Name":"case1","Desc":null,"capitalWord":null,"Type":0,"status":1,"originUser":0,"opUser":0,"zcUser":0,"spUser":0,"zjUser":0,"createTime":0,"zjTime":0,"spRemark":null}, {"Id":222222,"No":null,"Name":"case2","Desc":null,"capitalWord":null,"Type":0,"status":1,"originUser":0,"opUser":0,"zcUser":0,"spUser":0,"zjUser":0,"createTime":0,"zjTime":0,"spRemark":null},
{"Id":333333,"No":null,"Name":"case3","Desc":null,"capitalWord":null,"Type":0,"status":-1,"originUser":0,"opUser":0,"zcUser":0,"spUser":0,"zjUser":0,"createTime":0,"zjTime":0,"spRemark":null}
]}}} 展开
{"result":{"cases":{"page":1,"pagesize":10,"totalrows":11,"pages":2,"sort":" -createtime",
"results":[
{"Id":111111,"No":null,"Name":"case1","Desc":null,"capitalWord":null,"Type":0,"status":1,"originUser":0,"opUser":0,"zcUser":0,"spUser":0,"zjUser":0,"createTime":0,"zjTime":0,"spRemark":null}, {"Id":222222,"No":null,"Name":"case2","Desc":null,"capitalWord":null,"Type":0,"status":1,"originUser":0,"opUser":0,"zcUser":0,"spUser":0,"zjUser":0,"createTime":0,"zjTime":0,"spRemark":null},
{"Id":333333,"No":null,"Name":"case3","Desc":null,"capitalWord":null,"Type":0,"status":-1,"originUser":0,"opUser":0,"zcUser":0,"spUser":0,"zjUser":0,"createTime":0,"zjTime":0,"spRemark":null}
]}}} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询