| Modifier and Type | Field and Description |
|---|---|
static JsonNull |
NULL_INSTANCE |
| Constructor and Description |
|---|
JsonNull() |
| 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
|
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 static final JsonNull NULL_INSTANCE
public boolean isEmpty()
JsonValuepublic double asNumber()
JsonValuepublic boolean asBoolean()
JsonValuepublic String asString()
JsonValuepublic JsonType getType()
JsonValuepublic void traverse(org.dashbuilder.json.JsonVisitor visitor,
org.dashbuilder.json.JsonContext ctx)
JsonValueCopyright © 2017–2021 JBoss by Red Hat. All rights reserved.