public static void writeJSONString(Writer writer, Object object, SerializerFeature... features) {
        writeJSONString(writer, object, JSON.DEFAULT_GENERATE_FEATURE, features);
    }
This method serializes the specified object into its equivalent json representation.

@param writer Writer to which the json representation needs to be written
@param object the object for which json representation is to be created setting for fastjson
@param features serializer features
@since 1.2.11
src/main/java/com/alibaba/fastjson/JSON.java