JsonArrayTryParse(Stream, JsonArray, Encoding) Method

Tries to read a JsonArray from a Stream that contains JSON array.


Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public static bool TryParse(
	Stream stream,
	out JsonArray value,
	Encoding? encoding = null


stream  Stream
A Stream that will be read for the JsonArray content.
value  JsonArray
When this method returns , the result of the parsing; otherwise, . This parameter is passed uninitialized.
encoding  Encoding  (Optional)
An Encoding that specifies the encoding of the JSON array data in the stream. If , then UTF8 encoding will be used. This parameter is optional.
Default value: .

Return Value

if the parsing was successful; otherwise, .

See Also