[ Version ( since = "0.12" ) ]
public async bool load_from_stream_async (InputStream stream, Cancellable? cancellable = null) throws Error
Asynchronously reads the contents of a stream.
For more details, see [method@Json.Parser.load_from_stream], which is the synchronous version of this call.
When the operation is finished, callback will be called. You should then call [method@Json.Parser.load_from_stream_finish]
to get the result of the operation.
| this |
a parser |
| stream |
the input stream with the JSON data |
| cancellable | |
| callback |
the function to call when the request is satisfied |
| user_data |
the data to pass to |