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.


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


arrayIndex  Int32
The index of the array element to get.

Return Value

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

See Also