A class representing an array type in Json. An array is a list of [[JsonElement]]s each of which can be of a different type. This is an ordered list, meaning that the order in which elements are added is preserved.

See com.google.gson.JsonArray for full documentation

Hierarchy

Constructors

Methods

  • Adds the specified value to self.

    Parameters

    Returns void

  • Adds all the elements of the specified array to self.

    Parameters

    Returns void

  • Returns true if this array contains the specified element.

    Parameters

    Returns boolean

  • Returns the ith element of the array.

    Parameters

    • i: number

    Returns JsonElement

  • convenience method to get this element as a BigDecimal.

    Returns number

  • convenience method to get this element as a BigInteger.

    Returns number

  • convenience method to get this element as a boolean value.

    Returns boolean

  • convenience method to get this element as a primitive character value.

    Returns string

  • convenience method to get this element as a primitive double value.

    Returns number

  • convenience method to get this element as a primitive float value.

    Returns number

  • convenience method to get this element as a primitive integer value.

    Returns number

  • convenience method to get this element as a primitive long value.

    Returns number

  • convenience method to get this element as a Number.

    Returns number

  • convenience method to get this element as a primitive short value.

    Returns number

  • convenience method to get this element as a string value.

    Returns string

  • provides check for verifying if this element is an array or not.

    Returns boolean

  • provides check for verifying if this element represents a null value or not.

    Returns boolean

  • provides check for verifying if this element is a Json object or not.

    Returns boolean

  • provides check for verifying if this element is a primitive or not.

    Returns boolean

  • Removes the element at the specified position in this array.

    Parameters

    • index: number

    Returns JsonElement

  • Removes the first occurrence of the specified element from this array, if it is present.

    Parameters

    Returns boolean

  • Replaces the element at the specified position in this array with the specified element.

    Parameters

    Returns JsonElement

  • Returns the number of elements in the array.

    Returns number

Generated using TypeDoc