java中用json获取附件字段中docName的值
final String DATA_MODEL = "/demo/misc/data";
String ksql = "Select sendDoc.* from DEMO_SendDoc sendDoc";
Table table = KSQL.select(ksql, null, DATA_MODEL, null);
Row row = table.getRow("sendDoc", "CB2ED0E4FBBF421583CE48D7B6E74A4A");
String attachmentInfo = row.getString("fAttachment");
JSONArray jsonArray = new JSONArray(attachmentInfo);
int iSize = jsonArray.length();
for (int i = 0; i < iSize; i++) {
JSONObject jsonObj = jsonArray.getJSONObject(i);
System.out.println(jsonObj.get("docName"));
}
本文由WeX5君整理,WeX5一款开源免费的html5开发工具,H5 App开发就用WeX5!
阅读其他app 开发相关文章:http://doc.wex5.com/?p=3443
评一波