JsonObjectItem(ReadOnlySpanChar) Property

Gets the value of a property by name. Using a nonexistent propertyName returns Undefined, just like in JavaScript.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public JsonValue this[
	ReadOnlySpan<char> propertyName
] { get; }

Parameters

propertyName  ReadOnlySpanChar
The name of the property to get or set.

Return Value

JsonValue
The value of the property with the specified propertyName, or Undefined if no such property is found.

See Also