Click or drag to resize

MediaWikiHelperParseJsonAsync Method

This is preliminary documentation and is subject to change.

Asynchronously parses JSON content from the specified stream.

Namespace: WikiClientLibrary.Infrastructures
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static Task<JsonNode> ParseJsonAsync(
	Stream stream,
	CancellationToken cancellationToken
)

Parameters

stream  Stream
The stream containing the non-empty JSON content.
cancellationToken  CancellationToken
A token used to cancel the operation.

Return Value

TaskJsonNode
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
UnexpectedDataExceptionstream is empty stream, - or - parsed JSON response is null, - or - there is an error parsing the JSON response.
See Also