Class JsonArray

Index

Properties

Methods

Properties

public length: number

public size: number

public valueType: JsonValueType

Methods

public append(value: IJsonValue)

Parameters

public clear()

public concat(items?: Array<Windows.Data.Json.IJsonValue[]>): IJsonValue[]

Parameters

  • items?: Array<Windows.Data.Json.IJsonValue[]> optional

Returns

IJsonValue[]

public every(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean): boolean

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean

Returns

boolean

public every(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean, thisArg: any): boolean

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean
  • thisArg: any

Returns

boolean

public filter(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean): IJsonValue[]

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean

Returns

IJsonValue[]

public filter(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean, thisArg: any): IJsonValue[]

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean
  • thisArg: any

Returns

IJsonValue[]

public first(): IIterator

Returns

IIterator

public forEach(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => void)

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => void

public forEach(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => void, thisArg: any)

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => void
  • thisArg: any

public getArray(): JsonArray

Returns

JsonArray

public getArrayAt(index: number): JsonArray

Parameters

  • index: number

Returns

JsonArray

public getAt(index: number): IJsonValue

Parameters

  • index: number

Returns

IJsonValue

public getBoolean(): boolean

Returns

boolean

public getBooleanAt(index: number): boolean

Parameters

  • index: number

Returns

boolean

public getMany(startIndex: number): { items: Windows.Data.Json.IJsonValue[]; returnValue: number; }

Parameters

  • startIndex: number

Returns

{ items: Windows.Data.Json.IJsonValue[]; returnValue: number; }

public getNumber(): number

Returns

number

public getNumberAt(index: number): number

Parameters

  • index: number

Returns

number

public getObject(): JsonObject

Returns

JsonObject

public getObjectAt(index: number): JsonObject

Parameters

  • index: number

Returns

JsonObject

public getString(): string

Returns

string

public getStringAt(index: number): string

Parameters

  • index: number

Returns

string

public getView(): IVectorView

Returns

IVectorView

public indexOf(value: IJsonValue): { index: number; returnValue: boolean; }

Parameters

Returns

{ index: number; returnValue: boolean; }

public insertAt(index: number, value: IJsonValue)

Parameters

public join(seperator: string): string

Parameters

  • seperator: string

Returns

string

public lastIndexOf(searchElement: IJsonValue): number

Parameters

Returns

number

public lastIndexOf(searchElement: IJsonValue, fromIndex: number): number

Parameters

Returns

number

public map(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => any): Array<any>

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => any

Returns

Array<any>

public map(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => any, thisArg: any): Array<any>

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => any
  • thisArg: any

Returns

Array<any>

public static parse(input: string): JsonArray

Parameters

  • input: string

Returns

JsonArray

public pop(): IJsonValue

Returns

IJsonValue

public push(items?: IJsonValue[])

Parameters

public reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: Windows.Data.Json.IJsonValue[]) => any): any

Parameters

  • callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: Windows.Data.Json.IJsonValue[]) => any

Returns

any

public reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: Windows.Data.Json.IJsonValue[]) => any, initialValue: any): any

Parameters

  • callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: Windows.Data.Json.IJsonValue[]) => any
  • initialValue: any

Returns

any

public reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: Windows.Data.Json.IJsonValue[]) => any): any

Parameters

  • callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: Windows.Data.Json.IJsonValue[]) => any

Returns

any

public reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: Windows.Data.Json.IJsonValue[]) => any, initialValue: any): any

Parameters

  • callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: Windows.Data.Json.IJsonValue[]) => any
  • initialValue: any

Returns

any

public removeAt(index: number)

Parameters

  • index: number

public removeAtEnd()

public replaceAll(items: IJsonValue[])

Parameters

public reverse(): IJsonValue[]

Returns

IJsonValue[]

public setAt(index: number, value: IJsonValue)

Parameters

public shift(): IJsonValue

Returns

IJsonValue

public slice(start: number): IJsonValue[]

Parameters

  • start: number

Returns

IJsonValue[]

public slice(start: number, end: number): IJsonValue[]

Parameters

  • start: number
  • end: number

Returns

IJsonValue[]

public some(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean): boolean

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean

Returns

boolean

public some(callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean, thisArg: any): boolean

Parameters

  • callbackfn: (value: Windows.Data.Json.IJsonValue, index: number, array: Windows.Data.Json.IJsonValue[]) => boolean
  • thisArg: any

Returns

boolean

public sort(): IJsonValue[]

Returns

IJsonValue[]

public sort(compareFn: (a: Windows.Data.Json.IJsonValue, b: Windows.Data.Json.IJsonValue) => number): IJsonValue[]

Parameters

  • compareFn: (a: Windows.Data.Json.IJsonValue, b: Windows.Data.Json.IJsonValue) => number

Returns

IJsonValue[]

public splice(start: number): IJsonValue[]

Parameters

  • start: number

Returns

IJsonValue[]

public splice(start: number, deleteCount: number, items?: IJsonValue[]): IJsonValue[]

Parameters

  • start: number
  • deleteCount: number
  • items?: IJsonValue[] optional

Returns

IJsonValue[]

public stringify(): string

Returns

string

public toLocaleString(): string

Returns

string

public toString(): string

Returns

string

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

Parameters

  • input: string

Returns

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

public unshift(items?: IJsonValue[]): number

Parameters

Returns

number