JsonValue   Conversion (JsonValue to JsonObject)

Performs an explicit conversion from JsonValue to JsonObject. The conversion succeeds if the Type property is Null or Object; otherwise, an InvalidCastException is thrown.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public static explicit operator JsonObject (
	JsonValue value
)

Parameters

value  JsonValue
The value to be converted to a JsonObject.

Return Value

JsonObject
A JsonObject instance that represents the original value.

Exceptions

InvalidCastExceptionvalue does not represent an object.

See Also