Class JsonValue

Index

Properties

Methods

Properties

public valueType: JsonValueType

Methods

public static createBooleanValue(input: boolean): JsonValue

Parameters

  • input: boolean

Returns

JsonValue

public static createNumberValue(input: number): JsonValue

Parameters

  • input: number

Returns

JsonValue

public static createStringValue(input: string): JsonValue

Parameters

  • input: string

Returns

JsonValue

public getArray(): JsonArray

Returns

JsonArray

public getBoolean(): boolean

Returns

boolean

public getNumber(): number

Returns

number

public getObject(): JsonObject

Returns

JsonObject

public getString(): string

Returns

string

public static parse(input: string): JsonValue

Parameters

  • input: string

Returns

JsonValue

public stringify(): string

Returns

string

public static tryParse(input: string): { result: Windows.Data.Json.JsonValue; succeeded: boolean; }

Parameters

  • input: string

Returns

{ result: Windows.Data.Json.JsonValue; succeeded: boolean; }