A JSON event emited by the @see \io\vertx\jphp\core\parsetools\JsonParser.
package |
Default |
---|
__construct()
arrayValue() : array
array
the JSON array value or {@code null} if the event has no JSON value
binaryValue() : \io\vertx\jphp\core\buffer\Buffer
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.
\io\vertx\jphp\core\buffer\Buffer
the binary value or {@code null} if the event has no JSON value
booleanValue() : boolean
boolean
the {@code Boolean} value or {@code null} if the event has no JSON value
doubleValue() : float
float
the {@code Double} value or {@code null} if the event has no JSON value
fieldName() : string
string
the name of the field when the event is emitted as a JSON object member
floatValue() : float
float
the {@code Float} value or {@code null} if the event has no JSON value
integerValue() : integer
integer
the {@code Integer} value or {@code null} if the event has no JSON value
isArray() : boolean
boolean
true when the JSON value is a JSON array
isBoolean() : boolean
boolean
true when the JSON value is a boolean
isNull() : boolean
boolean
true when the JSON value is null
isNumber() : boolean
boolean
true when the JSON value is a number
isObject() : boolean
boolean
true when the JSON value is a JSON object
isString() : boolean
boolean
true when the JSON value is a string
longValue() : integer
integer
the {@code Long} value or {@code null} if the event has no JSON value
mapTo( $arg0) : mixed
string
mixed
the decoded value
objectValue() : array
array
the JSON object value or {@code null} if the event has no JSON value
stringValue() : string
string
the string value or {@code null} if the event has no JSON value
type() : string
string
the type of the event
value() : mixed
mixed
the json value for {@link JsonEventType#VALUE} events