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.JsonAssembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public JsonValue this[
int arrayIndex
] { get; }
Public ReadOnly Default Property Item (
arrayIndex As Integer
) As JsonValue
Get
public:
property JsonValue default[int arrayIndex] {
JsonValue get (int arrayIndex);
}
member Item : JsonValue with get
- arrayIndex Int32
- The index of the array element to get.
JsonValueThe value at the specified
arrayIndex, or
Undefined
if
arrayIndex is invalid or
Type is not
Array.