1.response转换成jsonstring
JSON.toJSONString(describeDBInstanceConfigResponse);
2.构建json
JSONObject jsonObject=new JSONObject();
jsonObject.put("BackupConfig",backupConfig); jsonObject.put("SlaveConfig",slaveConfig);
jsonObject.put("DeployMode",deployMode);
jsonObject.put("ProtectMode",protectMode);
jsonObject.put("Zone",zone);
jsonObject.put("Switched",switched);
jsonObject.toJSONString();