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
提交
取消