9[DebuggerDisplay(
"JsonObject[{Count}]")]
16 [DebuggerDisplay(
"{Display,nq}")]
40 return $"{PropertyName} = JsonObject[{jsonObject.Count}]";
43 return $"{PropertyName} = JsonArray[{jsonArray.Count}]";
163 writer.WriteStartObject();
169 writer.WritePropertyName(current.Key);
200 if (
base.Parent !=
null)
211 value?.AssignParent(
this);
229 value?.AssignParent(
this);
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ContainsKey(TKey key)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly
ref TValue FindValue(TKey key)
Enumerator GetEnumerator()
void Add(TKey key, TValue value)
static string NodeElementWrongType
static string Format(string resourceFormat, object p1)
static readonly JsonSerializerOptions s_defaultOptions
string ToJsonString(JsonSerializerOptions? options=null)
DebugView(JsonObject node)
void Add(string propertyName, JsonNode? value)
void Add(KeyValuePair< string, JsonNode?> property)
JsonObject(JsonNodeOptions? options=null)
JsonElement? _jsonElement
void DetachParent(JsonNode item)
override void GetPath(List< string > path, JsonNode child)
JsonObject(IEnumerable< KeyValuePair< string, JsonNode?> > properties, JsonNodeOptions? options=null)
void InitializeIfRequired()
bool Remove(string propertyName)
bool ContainsKey(string propertyName)
JsonObject(JsonElement element, JsonNodeOptions? options=null)
bool TryGetPropertyValue(string propertyName, out JsonNode? jsonNode)
override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options=null)
IEnumerator< KeyValuePair< string, JsonNode?> > GetEnumerator()
JsonNode GetItem(string propertyName)
JsonPropertyDictionary< JsonNode > _dictionary
void SetItem(string propertyName, JsonNode value)
static ? JsonObject Create(JsonElement element, JsonNodeOptions? options=null)
static JsonNode Create(JsonElement element, JsonNodeOptions? options)
static JsonNodeConverter Instance
new IEnumerator< T > GetEnumerator()
void WriteTo(Utf8JsonWriter writer)
ObjectEnumerator EnumerateObject()
static readonly char[] SpecialCharacters