<PackageReference Include="System.Text.Json" Version="10.0.0" />

System.Text.Json.Nodes.JsonObject

Represents a mutable JSON object.
namespace System.Text.Json.Nodes { public sealed class JsonObject : JsonNode, IDictionary<string, JsonNode>, ICollection<KeyValuePair<string, JsonNode>>, IEnumerable<KeyValuePair<string, JsonNode>>, IEnumerable, IList<KeyValuePair<string, JsonNode>> { public int Count { get; } [Nullable(new byte[] { 0, 1, 2 })] KeyValuePair<string, JsonNode> IList<KeyValuePair<string, JsonNode>>.this[int index] { get; set; } public JsonObject(JsonNodeOptions? options = default(JsonNodeOptions?)); public JsonObject(IEnumerable<KeyValuePair<string, JsonNode>> properties, JsonNodeOptions? options = default(JsonNodeOptions?)); public static JsonObject Create(JsonElement element, JsonNodeOptions? options = default(JsonNodeOptions?)); public bool TryGetPropertyValue(string propertyName, out JsonNode jsonNode); public bool TryGetPropertyValue(string propertyName, out JsonNode jsonNode, out int index); public void Add(string propertyName, JsonNode value); public bool TryAdd(string propertyName, JsonNode value); public bool TryAdd(string propertyName, JsonNode value, out int index); public void Add(KeyValuePair<string, JsonNode> property); public void Clear(); public bool ContainsKey(string propertyName); public bool Remove(string propertyName); public IEnumerator<KeyValuePair<string, JsonNode>> GetEnumerator(); public KeyValuePair<string, JsonNode> GetAt(int index); public void SetAt(int index, string propertyName, JsonNode value); public void SetAt(int index, JsonNode value); public int IndexOf(string propertyName); public void Insert(int index, string propertyName, JsonNode value); public void RemoveAt(int index); } }