# Class: JsonEvent

## vertx-js/json_event~ JsonEvent

#### new JsonEvent()

Source:
  - vertx-js/json_event.js, line 29

### Methods

#### arrayValue() → {todo}

Source:
  - vertx-js/json_event.js, line 265

##### Returns:

the JSON array value or `null` if the event has no JSON value

Type
  todo

#### binaryValue() → {Buffer}

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.

Source:
  - vertx-js/json_event.js, line 200

##### Returns:

the binary value or `null` if the event has no JSON value

Type
  Buffer

#### booleanValue() → {boolean}

Source:
  - vertx-js/json_event.js, line 157

##### Returns:

the `Boolean` value or `null` if the event has no JSON value

Type
  boolean

#### doubleValue() → {number}

Source:
  - vertx-js/json_event.js, line 131

##### Returns:

the `Double` value or `null` if the event has no JSON value

Type
  number

#### fieldName() → {string}

Source:
  - vertx-js/json_event.js, line 53

##### Returns:

the name of the field when the event is emitted as a JSON object member

Type
  string

#### floatValue() → {number}

Source:
  - vertx-js/json_event.js, line 118

##### Returns:

the `Float` value or `null` if the event has no JSON value

Type
  number

#### integerValue() → {number}

Source:
  - vertx-js/json_event.js, line 92

##### Returns:

the `Integer` value or `null` if the event has no JSON value

Type
  number

#### isArray() → {boolean}

Source:
  - vertx-js/json_event.js, line 252

##### Returns:

true when the JSON value is a JSON array

Type
  boolean

#### isBoolean() → {boolean}

Source:
  - vertx-js/json_event.js, line 144

##### Returns:

true when the JSON value is a boolean

Type
  boolean

#### isNull() → {boolean}

Source:
  - vertx-js/json_event.js, line 213

##### Returns:

true when the JSON value is null

Type
  boolean

#### isNumber() → {boolean}

Source:
  - vertx-js/json_event.js, line 79

##### Returns:

true when the JSON value is a number

Type
  boolean

#### isObject() → {boolean}

Source:
  - vertx-js/json_event.js, line 226

##### Returns:

true when the JSON value is a JSON object

Type
  boolean

#### isString() → {boolean}

Source:
  - vertx-js/json_event.js, line 170

##### Returns:

true when the JSON value is a string

Type
  boolean

#### longValue() → {number}

Source:
  - vertx-js/json_event.js, line 105

##### Returns:

the `Long` value or `null` if the event has no JSON value

Type
  number

#### mapTo(type) → {Object}

Decodes and returns the current value as the specified `type`.

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` | todo | the type to decode the value to

Source:
  - vertx-js/json_event.js, line 279

##### Returns:

the decoded value

Type
  Object

#### objectValue() → {Object}

Source:
  - vertx-js/json_event.js, line 239

##### Returns:

the JSON object value or `null` if the event has no JSON value

Type
  Object

#### stringValue() → {string}

Source:
  - vertx-js/json_event.js, line 183

##### Returns:

the string value or `null` if the event has no JSON value

Type
  string

#### type() → {Object}

Source:
  - vertx-js/json_event.js, line 40

##### Returns:

the type of the event

Type
  Object

#### value() → {Object}

Source:
  - vertx-js/json_event.js, line 66

##### Returns:

the json value for events

Type
  Object