KGy SOFT

JsonValueAsObject Property

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

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

public JsonObject AsObject { get; }

Property Value

Type: JsonObject
Remarks

To get property values you can also read the string indexer without obtaining the value as a JsonObject.

To set/add/remove object properties in a JsonValue instance you need to use this property or the explicit cast to JsonObject.

See Also

Reference