for (int i = 0; i < meta.getColumnCount(); i++) {
types.add(meta.getColumnTypeName(i+1)) ;
cols.add(meta.getColumnName(i+1)) ;
}
List<Map> rmap = (List<Map>)new ArrayListHandler().handle(rs) ;
JSONArray rows = JSONArray.fromObject(rmap) ;
JSONObject body = new JSONObject() ;
body.put("TYPE", types) ;
body.put("HEADER", cols) ;