JsonElement.EnumerateObject Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonElement.cs
EnumerateObject()
Get an enumerator to enumerate the properties in the JSON object represented by this JsonElement.
public ObjectEnumerator<JsonElement> EnumerateObject()
Returns
An enumerator to enumerate the properties in the JSON object represented by this JsonElement.
Exceptions
| Exception | Description |
|---|---|
InvalidOperationException |
This value's ValueKind is not Object. |
ObjectDisposedException |
The parent JsonDocument has been disposed. |
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue