JsonParser.
| Modifier and Type | Method and Description |
|---|---|
| public JsonArray | Returns: the JSON array value ornull if the event has no JSON value
References Deprecated
JsonArray is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public Buffer | Returns: the binary value ornull if the event has no JSON value
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Return the binary value. |
| public Boolean | |
| public Double | |
| public String | |
| public Float | |
| public Instant | Returns: theInstant value or null if the event has no JSON valueReturn the |
| public Integer | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Long | |
| public <T> T | |
| public <T> T | Returns: the decoded valuethe type to decode the value to type)Decodes and returns the current value as the specified |
| public JsonObject | Returns: the JSON object value ornull if the event has no JSON value
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public String | |
| public JsonEventType | |
| public Object |
| arrayValue | back to summary |
|---|---|
| public JsonArray arrayValue()
References Deprecated
See corresponding docs for further information.
| |
| binaryValue | back to summary |
|---|---|
| public Buffer binaryValue()
References Deprecated
See corresponding docs for further information. Return the binary value. JSON itself has no notion of a binary, this extension complies to the RFC-7493, so this method assumes there is a String value with the key and it contains a Base64 encoded binary, which it decodes if found and returns.
| |
| booleanValue | back to summary |
|---|---|
public Boolean booleanValue()
| |
| doubleValue | back to summary |
|---|---|
public Double doubleValue()
| |
| fieldName | back to summary |
|---|---|
public String fieldName()
| |
| floatValue | back to summary |
|---|---|
public Float floatValue()
| |
| instantValue | back to summary |
|---|---|
| public Instant instantValue() Return the JSON itself has no notion of a temporal types, this extension complies to the RFC-7493, so this method assumes there is a String value with the key and it contains an ISO 8601 encoded date and time format such as "2017-04-03T10:25:41Z", which it decodes if found and returns.
| |
| integerValue | back to summary |
|---|---|
public Integer integerValue()
| |
| isArray | back to summary |
|---|---|
public boolean isArray()
| |
| isBoolean | back to summary |
|---|---|
public boolean isBoolean()
| |
| isNull | back to summary |
|---|---|
public boolean isNull()
| |
| isNumber | back to summary |
|---|---|
public boolean isNumber()
| |
| isObject | back to summary |
|---|---|
public boolean isObject()
| |
| isString | back to summary |
|---|---|
public boolean isString()
| |
| longValue | back to summary |
|---|---|
public Long longValue()
| |
| mapTo | back to summary |
|---|---|
| public <T> T mapTo(Class<T> type) Decodes and returns the current value as the specified
| |
| mapTo | back to summary |
|---|---|
| public <T> T mapTo(TypeReference<T> type) Decodes and returns the current value as the specified
| |
| objectValue | back to summary |
|---|---|
| public JsonObject objectValue()
References Deprecated
See corresponding docs for further information.
| |
| stringValue | back to summary |
|---|---|
public String stringValue()
| |
| type | back to summary |
|---|---|
public JsonEventType type()
| |
| value | back to summary |
|---|---|
public Object value()
| |