Parser.loadFromStream

bool loadFromStream(gio.input_stream.InputStream stream, gio.cancellable.Cancellable cancellable = null)

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

streamthe input stream with the JSON data
cancellablea #GCancellable

Returns

TRUE if the data stream was successfully read and

parsed, and FALSE otherwise

Throws

[ErrorWrap]