Class JsonElementExtensions

Namespace
Cratis.Json
Assembly
Cratis.Fundamentals.dll

Represents extension methods for JsonElement.

public static class JsonElementExtensions
Inheritance
JsonElementExtensions
Inherited Members

Methods

TryGetValue(JsonElement, out object?)

Try to get the value of a JsonElement as a native CLR type.

public static bool TryGetValue(this JsonElement element, out object? value)

Parameters

element JsonElement

JsonElement to try to get from.

value object

Out result value.

Returns

bool

True if it can, false if not.