Parser.loadFromStreamAsync

Asynchronously reads the contents of a stream.

For more details, see json.parser.Parser.loadFromStream, which is the synchronous version of this call.

When the operation is finished, callback will be called. You should then call json.parser.Parser.loadFromStreamFinish to get the result of the operation.

Parameters

stream gio.input_stream.InputStream

the input stream with the JSON data

cancellable gio.cancellable.Cancellable

a #GCancellable

callback gio.types.AsyncReadyCallback

the function to call when the request is satisfied