JsonValueItem(Int32) Property

If the type of this JsonValue is Array and arrayIndex is within the valid bounds, then gets the value at the specified arrayIndex; otherwise, returns Undefined. Just like in JavaScript, using an invalid index returns Undefined.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public JsonValue this[
	int arrayIndex
] { get; }

Parameters

arrayIndex  Int32
The index of the array element to get.

Return Value

JsonValue
The value at the specified arrayIndex, or Undefined if arrayIndex is invalid or Type is not Array.

See Also