[ Version ( since = "0.12" ) ]
public bool load_from_stream (InputStream stream, Cancellable? cancellable = null) throws Error
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, `G_IO_ERROR_CANCELLED` will be set on the given `error`.
| this |
a parser |
| stream |
the input stream with the JSON data |
| cancellable |
|
`TRUE` if the data stream was successfully read and parsed, and `FALSE` otherwise |