Compartilhar via


ProtocolJsonSerializer.ToJsonElements(Object) Method

Definition

Decompose an object into its constituent JSON elements.

public static System.Collections.Generic.IDictionary<string,System.Text.Json.JsonElement> ToJsonElements(this object value);
static member ToJsonElements : obj -> System.Collections.Generic.IDictionary<string, System.Text.Json.JsonElement>
<Extension()>
Public Function ToJsonElements (value As Object) As IDictionary(Of String, JsonElement)

Parameters

value
Object

The object to be decomposed into JSON elements.

Returns

A dictionary of JSON elements keyed by property name.

Applies to