public class FTPServer {
String guId;
String serverName;
String ftpServerIP;
long ftpServerPort;
String ftpServerUserName;
String ftpServerPassword;
int ftpServerStatus; //服务器状态,为了页面显示方,此处不使用枚举值ServerState
String guId;
String serverName;
String ftpServerIP;
long ftpServerPort;
String ftpServerUserName;
String ftpServerPassword;
int ftpServerStatus; //服务器状态,为了页面显示方,此处不使用枚举值ServerState
transient FTPServerSych ftpServerSych; //封装CDYRNTCMonConfigInterface,提供并发控制
........................
================================
List<FTPServer> ftpServerList = ftpServerInterface.listFTPServer();
JsonConfig jsonConfig = new JsonConfig();
jsonConfig.setIgnoreTransientFields(true);//设置为不序列化transient的字段
strResult = JSONArray.fromObject(ftpServerList,jsonConfig).toString();