public interface JsonValue
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
Coerces underlying value to boolean according to the rules of Javascript coercion.
|
double |
asNumber()
Coerces the underlying value to a number according to the rules of Javascript coercion.
|
String |
asString()
Coerces the underlying value to a String according to the rules of JavaScript coercion.
|
JsonType |
getType()
Returns an enumeration representing the fundamental JSON type.
|
boolean |
jsEquals(JsonValue value)
Equivalent of Javascript '==' operator comparison between two values.
|
String |
toJson()
Returns a serialized JSON string representing this value.
|
Object |
toNative()
If used in a GWT context (dev or prod mode), converts the object to a native JavaScriptObject
suitable for passing to JSNI methods.
|
boolean asBoolean()
double asNumber()
String asString()
JsonType getType()
String toJson()
boolean jsEquals(JsonValue value)
Object toNative()
Copyright © 2016. All rights reserved.