Fastjson 使用指南
Fastjson API
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);