JsonValueAsArray Property

Gets this JsonValue instance as a JsonArray if it has Array Type; or , if its Type is not Array.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public JsonArray AsArray { get; }

Property Value

JsonArray

Remarks

To get array elements you can also read the numeric indexer without obtaining the value as a JsonArray.

To set/add/remove array elements in a JsonValue instance you need to use this property or the explicit cast to JsonArray.

See Also