ProtocolJsonSerializer.ToJsonElements(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.