Example usage for Java com.google.gson JsonElement fields, constructors, methods, implement or subclass
The text is from its open source code.
JsonElement | deepCopy() Returns a deep copy of this element. |
BigDecimal | getAsBigDecimal() convenience method to get this element as a BigDecimal . |
BigInteger | getAsBigInteger() convenience method to get this element as a BigInteger . |
boolean | getAsBoolean() convenience method to get this element as a boolean value. |
byte | getAsByte() convenience method to get this element as a primitive byte value. |
char | getAsCharacter() convenience method to get the first character of this element as a string or the first character of this array's first element as a string. |
double | getAsDouble() convenience method to get this element as a primitive double value. |
float | getAsFloat() convenience method to get this element as a primitive float value. |
int | getAsInt() convenience method to get this element as a primitive integer value. |
JsonArray | getAsJsonArray() convenience method to get this element as a JsonArray . |
JsonNull | getAsJsonNull() convenience method to get this element as a JsonNull . |
JsonObject | getAsJsonObject() convenience method to get this element as a JsonObject . |
JsonPrimitive | getAsJsonPrimitive() convenience method to get this element as a JsonPrimitive . |
long | getAsLong() convenience method to get this element as a primitive long value. |
Number | getAsNumber() convenience method to get this element as a Number . |
short | getAsShort() convenience method to get this element as a primitive short value. |
String | getAsString() convenience method to get this element as a string value. |
boolean | isJsonArray() provides check for verifying if this element is an array or not. |
boolean | isJsonNull() provides check for verifying if this element represents a null value or not. |
boolean | isJsonObject() provides check for verifying if this element is a Json object or not. |
boolean | isJsonPrimitive() provides check for verifying if this element is a primitive or not. |
String | toString() Returns a String representation of this element. |