Home JsonElementExtensions Class
JsonElementExtensions Class
Cancel

JsonElementExtensions Class

Namespace: Json.Schema

Inheritance: JsonElementExtensions 🡒 object

Provides some schema-related functionality for System.Text.Json.JsonElement.

Fields

NameTypeSummary
FalseJsonElementRepresents a JSON Boolean value of <see langword=”false” /> as a System.Text.Json.JsonElement.
TrueJsonElementRepresents a JSON element with the boolean value <see langword=”true” />.

Methods

GetSchemaValueType(this JsonElement element)

Provides the JSON Schema type for a value.

Declaration

1
public static SchemaValueType GetSchemaValueType(this JsonElement element)
ParameterTypeDescription
elementJsonElementThe node.

Returns

The Json.Schema.SchemaValueType of the value.

Contents