Returns a deep copy of this element.
convenience method to get this element as a BigDecimal.
convenience method to get this element as a BigInteger.
convenience method to get this element as a boolean value.
convenience method to get this element as a primitive character value.
convenience method to get this element as a primitive double value.
convenience method to get this element as a primitive float value.
convenience method to get this element as a primitive integer value.
convenience method to get this element as a JsonArray.
convenience method to get this element as a JsonNull.
convenience method to get this element as a JsonObject.
convenience method to get this element as a JsonPrimitive.
convenience method to get this element as a primitive long value.
convenience method to get this element as a Number.
convenience method to get this element as a primitive short value.
convenience method to get this element as a string value.
provides check for verifying if this element is an array or not.
provides check for verifying if this element represents a null value or not.
provides check for verifying if this element is a Json object or not.
provides check for verifying if this element is a primitive or not.
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