json
来源:互联网 发布:java从业人员发展方向 编辑:程序博客网 时间:2024/04/30 01:28
JSONArray array = new JSONArray();
JSONObject member = null;
try {
out = response.getWriter();
for (Professional pro : proList) {
member = new JSONObject();
member.put("proName", pro.getProName());
member.put("id", pro.getId());
array.put(member);
}
} catch (JSONException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
out.print(array.toString());
JSONObject member = null;
try {
out = response.getWriter();
for (Professional pro : proList) {
member = new JSONObject();
member.put("proName", pro.getProName());
member.put("id", pro.getId());
array.put(member);
}
} catch (JSONException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
out.print(array.toString());
0 0
- Json
- JSON
- JSON
- JSON
- json
- JSON
- JSON
- json
- Json
- json
- JSON
- json
- json
- JSON
- json
- JSON
- JSON
- json
- Android 使用ORMLite 操作数据库
- 上传代码到Github
- Linux添加自定义命令方法
- 快速对Mysql添加索引的五个方法
- C# 3D到2D投射
- json
- android动画(一)Interpolator
- 如何在普通 UIViewController 中使用 UITableView
- Controller不是tableView的垃圾桶
- iOS8Extension之Today插件
- 你所不知的 CSS ::before 和 ::after 伪元素用法
- 阅读记录
- android canvas save 和 restore 用法
- vbird笔记2016-02-19