JsonObjectItem(StringSegment) 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[
	StringSegment propertyName
] { get; }

Parameters

propertyName  StringSegment
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.

Exceptions

ArgumentNullExceptionpropertyName is StringSegment.Null.

See Also