-
Notifications
You must be signed in to change notification settings - Fork 6.5k
JSON_toJSONString_cn
wenshao edited this page May 5, 2016
·
2 revisions
将java对象序列化为JSON字符串,fastjson提供了一个最简单的入口
package com.alibaba.fastjson;
public abstract class JSON {
public static String toJSONString(Object object);
}
import com.alibaba.fastjson.JSON;
Model model = new Model();
model.id = 1001;
String json = JSON.toJSONString(model);
如有需要修改本注脚,请联系阿里巴巴,
© Alibaba Fastjson Develop Team
注明: 版权所有阿里巴巴,请注明版权所有者
If you need to amend this footnote, please contact Alibaba.
© Alibaba Fastjson Develop Team
Note: Copyright Alibaba, please indicate the copyright owner