IJsonValue IJsonValue IJsonValue IJsonValue Interface

Definition

Encapsulates a JSON value.

public : interface IJsonValue
struct winrt::Windows::Data::Json::IJsonValue
public interface IJsonValue
Public Interface IJsonValue
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

ValueType ValueType ValueType ValueType

Gets the type of the encapsulated JSON value. Possible types are defined by JsonValueType.

Methods

GetArray() GetArray() GetArray() GetArray()

Returns a pointer to the array if the ValueType of the encapsulated value is Array. If it is not, an exception is thrown.

GetBoolean() GetBoolean() GetBoolean() GetBoolean()

Returns the Boolean if the ValueType of the encapsulated value is Boolean. If it is not, an exception is thrown.

GetNumber() GetNumber() GetNumber() GetNumber()

Returns the number (a Double) if the ValueType of the encapsulated value is Number. If it is not, an exception is thrown.

GetObject() GetObject() GetObject() GetObject()

Returns a pointer to the object if the ValueType of the encapsulated value is Object. If it is not, an exception is thrown.

GetString() GetString() GetString() GetString()

Returns the String if the ValueType of the encapsulated value is String. If it is not, an exception is thrown.

Stringify() Stringify() Stringify() Stringify()

Retrieves the JSON representation of the encapsulated value.