Generator.toStream
bool toStream(gio.output_stream.OutputStream stream, gio.cancellable.Cancellable cancellable = null)Outputs JSON data and writes it (synchronously) to the given stream.
Parameters
stream | the output stream used to write the JSON data |
cancellable | a gio.cancellable.Cancellable |
Returns
whether the write operation was successful