Class JsonObject

Index

Properties

Methods

Properties

public size: number

public valueType: JsonValueType

Methods

public clear()

public first(): IIterator

Returns

IIterator

public getArray(): JsonArray

Returns

JsonArray

public getBoolean(): boolean

Returns

boolean

public getNamedArray(name: string): JsonArray

Parameters

  • name: string

Returns

JsonArray

public getNamedBoolean(name: string): boolean

Parameters

  • name: string

Returns

boolean

public getNamedNumber(name: string): number

Parameters

  • name: string

Returns

number

public getNamedObject(name: string): JsonObject

Parameters

  • name: string

Returns

JsonObject

public getNamedString(name: string): string

Parameters

  • name: string

Returns

string

public getNamedValue(name: string): JsonValue

Parameters

  • name: string

Returns

JsonValue

public getNumber(): number

Returns

number

public getObject(): JsonObject

Returns

JsonObject

public getString(): string

Returns

string

public getView(): IMapView

Returns

IMapView

public hasKey(key: string): boolean

Parameters

  • key: string

Returns

boolean

public insert(key: string, value: IJsonValue): boolean

Parameters

Returns

boolean

public lookup(key: string): IJsonValue

Parameters

  • key: string

Returns

IJsonValue

public static parse(input: string): JsonObject

Parameters

  • input: string

Returns

JsonObject

public remove(key: string)

Parameters

  • key: string

public setNamedValue(name: string, value: IJsonValue)

Parameters

public stringify(): string

Returns

string

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

Parameters

  • input: string

Returns

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