JsonValueTryParse(Stream, JsonValue, Encoding) Method
Namespace: KGySoft.JsonAssembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public static bool TryParse(
Stream stream,
out JsonValue value,
Encoding? encoding = null
)
Public Shared Function TryParse (
stream As Stream,
<OutAttribute> ByRef value As JsonValue,
Optional encoding As Encoding = Nothing
) As Boolean
public:
static bool TryParse(
Stream^ stream,
[OutAttribute] JsonValue% value,
Encoding^ encoding = nullptr
)
static member TryParse :
stream : Stream *
value : JsonValue byref *
?encoding : Encoding
(* Defaults:
let _encoding = defaultArg encoding null
*)
-> bool
- stream Stream
- A Stream that will be read for the JsonValue content.
- value JsonValue
- When this method returns , the result of the parsing;
otherwise, Undefined. This parameter is passed uninitialized.
- encoding Encoding (Optional)
- An Encoding that specifies the encoding of the JSON data in the stream.
If , then UTF8 encoding will be used. This parameter is optional.
Default value: .
Boolean if the parsing was successful; otherwise,
.