http://www.cashl.edu.cn/cashlsearch/search?json={"targetTypes":{"typeCode":"book"},"conditions":[{"logic":"AND","searchType":"INC","term":"b","column":"string_titlefacet"}],"pageUtil":{"currentPage":1,"pageSize":"20"},"maxResult":100}
1 回答
一只名叫tom的猫
TA贡献1906条经验 获得超3个赞
String json = request.getParameter("json");
// 以下为获取typeCode的代码
JSONObject jsonObject = JSONObject.fromObject(json);
JSONObject targetObject = jsonObject.getJSONObject("targetTypes");
String type = targetObject.getString("typeCode");
System.out.println(type);
获取其他属性,以此类推就可以了
添加回答
举报
0/150
提交
取消