JsonElement
Represents a specific JSON value within a JsonDocument.
public struct ArrayEnumerator : IEnumerable<JsonElement>, IEnumerable, IEnumerator<JsonElement>, IEnumerator, IDisposable
Represents an enumerator for the contents of a JSON array.
public struct ObjectEnumerator : IEnumerable<JsonProperty>, IEnumerable, IEnumerator<JsonProperty>, IEnumerator, IDisposable
Represents an enumerator for the properties of a JSON object.
Gets the value at the specified index if the current value is an Array.
Gets the type of the current JSON value.
Parses one JSON value (including objects or arrays) from the provided reader.
Attempts to parse one JSON value (including objects or arrays) from the provided reader.
Gets a JsonElement that can be safely stored beyond the lifetime of the original JsonDocument.
Gets an enumerator to enumerate the values in the JSON array represented by this JsonElement.
Gets an enumerator to enumerate the properties in the JSON object represented by this JsonElement.
Gets the number of values contained within the current array value.
Gets the value of the element as a Boolean.
Gets the current JSON number as a Byte.
Gets the value of the element as a byte array.
Gets the value of the element as a DateTime.
Gets the value of the element as a DateTimeOffset.
Gets the current JSON number as a Decimal.
Gets the current JSON number as a Double.
Gets the value of the element as a Guid.
Gets the current JSON number as an Int16.
Gets the current JSON number as an Int32.
Gets the current JSON number as an Int64.
Gets a JsonElement representing the value of a required property identified by propertyName.
Gets a JsonElement representing the value of a required property identified by propertyName.
Gets a JsonElement representing the value of a required property identified by utf8PropertyName.
Gets a string that represents the original input data backing this value.
Gets the current JSON number as an SByte.
Gets the current JSON number as a Single.
Gets the value of the element as a String.
Gets the current JSON number as a UInt16.
Gets the current JSON number as a UInt32.
Gets the current JSON number as a UInt64.
Attempts to represent the current JSON number as a Byte.
Attempts to represent the current JSON string as a byte array, assuming that it is Base64 encoded.
Attempts to represent the current JSON string as a DateTime.
Attempts to represent the current JSON string as a DateTimeOffset.
Attempts to represent the current JSON number as a Decimal.
Attempts to represent the current JSON number as a Double.
Attempts to represent the current JSON string as a Guid.
Attempts to represent the current JSON number as an Int16.
Attempts to represent the current JSON number as an Int32.
Attempts to represent the current JSON number as a Int64.
Looks for a property named propertyName in the current object, returning a value that indicates whether or not such a property exists. When the property exists, its value is assigned to the value argument.
Looks for a property named propertyName in the current object, returning a value that indicates whether or not such a property exists. When the property exists, the method assigns its value to the value argument.
Looks for a property named utf8PropertyName in the current object, returning a value that indicates whether or not such a property exists. When the property exists, the method assigns its value to the value argument.
Attempts to represent the current JSON number as an SByte.
Attempts to represent the current JSON number as a Single.
Attempts to represent the current JSON number as a UInt16.
Attempts to represent the current JSON number as a UInt32.
Attempts to represent the current JSON number as a UInt64.
Compares a specified string to the string value of this element.
Compares the text represented by a UTF8-encoded byte span to the string value of this element.
Compares a specified read-only character span to the string value of this element.
Writes the element to the specified writer as a JSON value.