Generator.toStream

Outputs JSON data and writes it (synchronously) to the given stream.

Parameters

stream gio.output_stream.OutputStream

the output stream used to write the JSON data

cancellable gio.cancellable.Cancellable

Return Value

Type: bool

whether the write operation was successful