[ Version ( since = "0.12" ) ]
public bool to_stream (OutputStream stream, Cancellable? cancellable = null) throws Error
Outputs JSON data and writes it (synchronously) to the given stream.
this |
a generator |
stream |
the output stream used to write the JSON data |
cancellable |
a `GCancellable` |
whether the write operation was successful |