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