Parser.loadFromStream

Loads the contents of an input stream and parses them.

If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, gio.types.IOErrorEnum.Cancelled will be set on the given error.

Parameters

stream gio.input_stream.InputStream

the input stream with the JSON data

cancellable gio.cancellable.Cancellable

a #GCancellable

Return Value

Type: bool

TRUE if the data stream was successfully read and parsed, and FALSE otherwise