JsonNode resBodyRelate = result.getBody();
//{"language":null,"type":null,"readCount":3,"viewStatus":"V","secondType":null}
System.out.println(resBodyRelate.getArray().get(0));
com.alibaba.fastjson.JSONObject itemObjectRelate = JSON.parseObject(resBodyRelate.getArray().get(0).toString());
String resultStr = itemObjectRelate.get("viewStatus").toString();
System.out.println(resultStr);
pom依赖
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.73</version>
</dependency>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)