| Constructor and Description |
|---|
JsonNumber(double number) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean()
Convert the underlying value to boolean
|
double |
asNumber()
Convert the underlying value to a number
|
String |
asString()
Convert the underlying value to a String
|
double |
getNumber() |
JsonType |
getType()
Returns an enumeration representing the fundamental JSON type.
|
boolean |
isEmpty()
Check if the json has no value stored.
|
String |
toJson()
Returns a serialized JSON string representing this value.
|
void |
traverse(org.dashbuilder.json.JsonVisitor visitor,
org.dashbuilder.json.JsonContext ctx)
Visitor interface
|
public boolean isEmpty()
JsonValuepublic boolean asBoolean()
JsonValuepublic double asNumber()
JsonValuepublic String asString()
JsonValuepublic double getNumber()
public JsonType getType()
JsonValuepublic void traverse(org.dashbuilder.json.JsonVisitor visitor,
org.dashbuilder.json.JsonContext ctx)
JsonValueCopyright © 2017–2020 JBoss by Red Hat. All rights reserved.