KGy SOFT

JsonValueAsArray Property

KGy SOFT JSON Libraries Help
Gets this JsonValue instance as a JsonArray if it has Array Type; or , if its Type is not Array.
See the Remarks section for details.

Namespace:  KGySoft.Json
Assembly:  KGySoft.Json (in KGySoft.Json.dll) Version: 2.0.1
Syntax

public JsonArray AsArray { get; }

Property Value

Type: 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

Reference