Share via


JsonMessageFormatter.Deserialize Method

Definition

Overloads

Deserialize(JToken)

Deserializes a Newtonsoft.Json.Linq.JToken to a JsonRpcMessage.

Deserialize(ReadOnlySequence<Byte>)

Deserializes a JsonRpcMessage.

Deserialize(ReadOnlySequence<Byte>, Encoding)

Deserializes a sequence of bytes to a JsonRpcMessage.

Deserialize(JToken)

Deserializes a Newtonsoft.Json.Linq.JToken to a JsonRpcMessage.

public StreamJsonRpc.Protocol.JsonRpcMessage Deserialize (Newtonsoft.Json.Linq.JToken json);
member this.Deserialize : Newtonsoft.Json.Linq.JToken -> StreamJsonRpc.Protocol.JsonRpcMessage
Public Function Deserialize (json As JToken) As JsonRpcMessage

Parameters

json
Newtonsoft.Json.Linq.JToken

The JSON to deserialize.

Returns

The deserialized message.

Applies to

Deserialize(ReadOnlySequence<Byte>)

Deserializes a JsonRpcMessage.

public StreamJsonRpc.Protocol.JsonRpcMessage Deserialize (System.Buffers.ReadOnlySequence<byte> contentBuffer);
abstract member Deserialize : System.Buffers.ReadOnlySequence<byte> -> StreamJsonRpc.Protocol.JsonRpcMessage
override this.Deserialize : System.Buffers.ReadOnlySequence<byte> -> StreamJsonRpc.Protocol.JsonRpcMessage
Public Function Deserialize (contentBuffer As ReadOnlySequence(Of Byte)) As JsonRpcMessage

Parameters

contentBuffer
ReadOnlySequence<Byte>

A sequence of bytes to deserialize.

Returns

The deserialized JsonRpcMessage.

Implements

Applies to

Deserialize(ReadOnlySequence<Byte>, Encoding)

Deserializes a sequence of bytes to a JsonRpcMessage.

public StreamJsonRpc.Protocol.JsonRpcMessage Deserialize (System.Buffers.ReadOnlySequence<byte> contentBuffer, System.Text.Encoding encoding);
abstract member Deserialize : System.Buffers.ReadOnlySequence<byte> * System.Text.Encoding -> StreamJsonRpc.Protocol.JsonRpcMessage
override this.Deserialize : System.Buffers.ReadOnlySequence<byte> * System.Text.Encoding -> StreamJsonRpc.Protocol.JsonRpcMessage
Public Function Deserialize (contentBuffer As ReadOnlySequence(Of Byte), encoding As Encoding) As JsonRpcMessage

Parameters

contentBuffer
ReadOnlySequence<Byte>

The bytes to deserialize.

encoding
Encoding

The encoding to read the bytes in contentBuffer with. Must not be null.

Returns

The deserialized message.

Implements

Applies to