| Constructor and Description |
|---|
JsonBoolean(boolean bool) |
| 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
|
boolean |
getBoolean() |
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 boolean getBoolean()
public JsonType getType()
JsonValuepublic void traverse(org.dashbuilder.json.JsonVisitor visitor,
org.dashbuilder.json.JsonContext ctx)
JsonValuepublic String toJson() throws IllegalStateException
JsonValuetoJson in interface JsonValueIllegalStateExceptionCopyright © 2017–2021 JBoss by Red Hat. All rights reserved.