Class JsonElement

java.lang.Object
com.azure.json.models.JsonElement
All Implemented Interfaces:
JsonSerializable<JsonElement>
Direct Known Subclasses:
JsonArray, JsonBoolean, JsonNull, JsonNumber, JsonObject, JsonString

public abstract class JsonElement extends Object implements JsonSerializable<JsonElement>
Interface defining methods that all JSON types must implement.
  • Constructor Details

    • JsonElement

      public JsonElement()
      Default constructor.
  • Method Details

    • isArray

      public boolean isArray()
      Indicates whether the element is an array.
      Returns:
      Whether the element is an array.
    • isObject

      public boolean isObject()
      Indicates whether the element is an object.
      Returns:
      Whether the element is an object.
    • isBoolean

      public boolean isBoolean()
      Indicates whether the element is a boolean.
      Returns:
      Whether the element is a boolean.
    • isNull

      public boolean isNull()
      Indicates whether the element is a null.
      Returns:
      Whether the element is a null.
    • isNumber

      public boolean isNumber()
      Indicates whether the element is a number.
      Returns:
      Whether the element is a number.
    • isString

      public boolean isString()
      Indicates whether the element is a string.
      Returns:
      Whether the element is a string.