A class representing an element of Json. It could either be a JsonObject, a JsonArray, a JsonPrimitive or a JsonNull.

See com.google.gson.JsonElement for full documentation

Hierarchy

Constructors

Methods

  • 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 JsonArray.

    Returns JsonArray

  • convenience method to get this element as a JsonNull.

    Returns JsonNull

  • convenience method to get this element as a JsonObject.

    Returns JsonObject

  • convenience method to get this element as a JsonPrimitive.

    Returns JsonPrimitive

  • 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

Generated using TypeDoc