Fastjson 使用指南
Fastjson API
Fastjson在1.2.11版本中,JSON类新增对OutputStream/Writer直接支持。
package com.alibaba.fastjson;
public abstract class JSON {
public static final int writeJSONString(OutputStream os, //
Object object, //
SerializerFeature... features) throws IOException;
public static final int writeJSONString(OutputStream os, //
Charset charset, //
Object object, //
SerializerFeature... features) throws IOException;
public static final int writeJSONString(Writer os, //
Object object, //
SerializerFeature... features) throws IOException;
}