lib/message-utils.js
function (message, encoding) {
    return module.exports.jsonToObject(
      module.exports.decodePayload(message, encoding))
  }
function (message, encoding) {
    return module.exports.jsonToObject(
      module.exports.decodePayload(message, encoding))
  }
function ( message , encoding ) { return module . exports . jsonToObject ( module . exports . decodePayload ( message , encoding ) ) }
Converts the specified message's payload from JSON to an object and returns
it.
@param {external:Message} message - The DXL message.
@param {String} [encoding=utf8] - The encoding of the payload.
@returns {Object} The object.
Converts the specified message s payload from JSON to an object and returns it .