JsonArray Members

JsonArray has the following members.

Public Constructors

  Name Description
JsonArray Creates a new JsonArray object that represents a JSON array.

Public Properties

  Name Description
Size Gets the size (count) of the array.
ValueType Gets the type of the values within the array. Possible types are defined by JsonValueType.

Public Methods

  Name Description
Append Adds a new item to the array.
Clear Removes all items from the collection.
First Returns the iterator for iteration over the items in the array.
GetArray Gets the JsonArray, if the ValueType of the encapsulated value is Array.
GetArrayAt Gets the JsonArray at the specified index, if the ValueType of the encapsulated value is Array.
GetAt Returns the item located at the specified index.
GetBoolean Gets the Boolean value, if the ValueType of the encapsulated value is Boolean.
GetBooleanAt Gets the Boolean value at the specified index, if the ValueType of the value at that index is Boolean.
GetMany Gets all array items of type IJsonValue, starting from a specified index.
GetNumber Gets the number, if the ValueType of the encapsulated value is Number.
GetNumberAt Gets the number at the specified index, if the ValueType of the value at that index is Number.
GetObject Gets the JsonObject, if the ValueType of the encapsulated value is Object.
GetObjectAt Gets the JsonObject at the specified index, if the ValueType of the encapsulated value is Object.
GetString Gets the string, if the ValueType of the encapsulated value is String.
GetStringAt Gets the string at the specified index, if the ValueType of the encapsulated value is String.
GetView Gets a JsonArray view.
IndexOf Searches for a JsonValue object and returns the zero-based index of its first occurrence within the JsonArray.
InsertAt Inserts a JsonValue into an array at the specified index.
  Parse Parses the specified JSON string that represents a JsonArray.
RemoveAt Removes the item at the specified index.
RemoveAtEnd Removes the last item in the array.
ReplaceAll Clears the array and then inserts the provided collection of JsonValue objects as new array items.
SetAt Sets the value at the specified index using the provided JsonValue.
Stringify Returns the JSON representation of the encapsulated value.
  TryParse Parses the provided string into a JsonArray.

See also

Reference

JsonArray Class

Windows.Data.Json Namespace