| Constructor and Description |
|---|
JsonString(String string) |
| 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
|
String |
getString() |
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 JsonString(String string)
public boolean isEmpty()
JsonValuepublic boolean asBoolean()
JsonValuepublic double asNumber()
JsonValuepublic String asString()
JsonValuepublic String getString()
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.