Show / Hide Table of Contents

Method HSMessage.Json(+ 1 overload)


Overload

JSON-deserializes HSMessage.Content to object of type T.

public T Json<T>()
Returns
T

default(T) if the request does not have body data.

Exceptions
Exception

Exceptions of System.Text.Json.JsonSerializer.Deserialize<TValue>.

Type Parameters
T

Overload(top)

JSON-deserializes HSMessage.Content to object of specified type.

public object Json(Type type)
Parameters
type  (Type)
Returns
object

null if the request does not have body data.

Exceptions
Exception

Exceptions of System.Text.Json.JsonSerializer.Deserialize.