IJsonValue interface

Applies to Windows and Windows Phone

Encapsulates a JSON value.

Syntax

Public Interface IJsonValue

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The IJsonValue interface has these types of members:

Methods

The IJsonValue interface has these methods. It also inherits methods from the Object class.

MethodDescription
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 Returns the Boolean if the ValueType of the encapsulated value is Boolean. If it is not, an exception is thrown.
GetNumber Returns the number (a Double) if the ValueType of the encapsulated value is Number. If it is not, an exception is thrown.
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 Returns the String if the ValueType of the encapsulated value is String. If it is not, an exception is thrown.
Stringify Retrieves the JSON representation of the encapsulated value.

 

Properties

The IJsonValue interface has these properties.

PropertyAccess typeDescription

ValueType

Read-onlyGets the type of the encapsulated JSON value. Possible types are defined by JsonValueType.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Json
Windows::Data::Json [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft