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

streamthe output stream used to write the JSON data
cancellablea [gio.cancellable.Cancellable]

Returns

whether the write operation was successful

Throws

[ErrorWrap]