JsonValueAsObject Property

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

Definition

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

Property Value

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