Bluestep JS Documentation
    Preparing search index...

    Class JsonObject

    A class representing an object type in Json. An object consists of name-value pairs where names are strings, and values are any other type of JsonElement. This allows for a creating a tree of JsonElements. The member elements of this object are maintained in order they were added.

    See com.google.gson.JsonObject for full documentation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Adds a member, which is a name-value pair, to self.

      Parameters

      • property: string
      • value: string | number | boolean | JsonElement

      Returns void

    • Returns the member with the specified name.

      Parameters

      • memberName: string

      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 JsonNull.

      Returns JsonNull

    • 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

    • Convenience method to check if a member with the specified name is present in this object.

      Parameters

      • memberName: string

      Returns boolean

    • 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

    • Returns a set of members key values.

      Returns Set<string>

    • Removes the property from this JsonObject.

      Parameters

      • property: string

      Returns JsonElement

    • Returns the number of key/value pairs in the object.

      Returns number