ProtocolJsonSerializer.ToJsonElement(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.
Object to JsonElement conversion.
public static System.Text.Json.JsonElement ToJsonElement(this object value);
static member ToJsonElement : obj -> System.Text.Json.JsonElement
<Extension()>
Public Function ToJsonElement (value As Object) As JsonElement
Parameters
- value
- Object
The object to convert to a JsonElement.
Returns
A JsonElement representing the specified object.