michael@0: package org.json.simple; michael@0: michael@0: import java.io.IOException; michael@0: import java.io.Writer; michael@0: michael@0: /** michael@0: * Beans that support customized output of JSON text to a writer shall implement this interface. michael@0: * @author FangYidong michael@0: */ michael@0: public interface JSONStreamAware { michael@0: /** michael@0: * write JSON string to out. michael@0: */ michael@0: void writeJSONString(Writer out) throws IOException; michael@0: }