![]() ![]() JsonNode and the classes that derive from it in the namespace provide the ability to create a mutable DOM. For more information, see Use JsonDocument later in this article. JsonDocument exposes a RootElement property. The JsonElement type provides array and object enumerators along with APIs to convert JSON text to common. The JSON elements that compose the payload can be accessed via the JsonElement type. JsonDocument provides the ability to build a read-only DOM by using Utf8JsonReader. The JSON you receive doesn't have a fixed schema and must be inspected to know what it contains.You don't have a type to deserialize into. ![]() Working with a DOM is an alternative to deserialization with JsonSerializer when: This article shows how to use a JSON Document Object Model (DOM) for random access to data in a JSON payload.
0 Comments
Leave a Reply. |