|
楼主 |
发表于 2016-12-6 20:53:47
|
显示全部楼层
- Table dt = GetCodeTable("UPYUNConfig");
-
- Table2Json ob = new Table2Json();
- Object o = ob.transform(dt,null);
复制代码
- {"@type":"table","rows":[{"cODE":{"value":"URL"},"cONTENT":{"value":"http://reabam-hd.b0.upaiyun.com/"},"userdata":{}},{"cODE":{"value":"OPERATOR_PWD"},"cONTENT":{"value":"reabam.com"},"userdata":{}},{"cODE":{"value":"OPERATOR_NAME"},"cONTENT":{"value":"reabamhd"},"userdata":{}},{"cODE":{"value":"BUCKET_NAME"},"cONTENT":{"value":"reabam-hd"},"userdata":{}}],"userdata":{"model":"/rbCommon/common/data","relationAlias":"cODE,cONTENT","relationTypes":"String,String","relations":"EXPRESS,EXPRESS","updateMode":"whereVersion"}}
复制代码 |
|