lib/message-utils.js
function (obj, prettyPrint) {
    return prettyPrint ? JSON.stringify(obj,
        Object.keys(findUniqueKeys(
            obj, {}, [])).sort(), 4) : JSON.stringify(obj)
  }
function (obj, prettyPrint) {
    return prettyPrint ? JSON.stringify(obj,
        Object.keys(findUniqueKeys(
            obj, {}, [])).sort(), 4) : JSON.stringify(obj)
  }
function ( obj , prettyPrint ) { return prettyPrint ? JSON . stringify ( obj , Object . keys ( findUniqueKeys ( obj , { } , [ ] ) ) . sort ( ) , 4 ) : JSON . stringify ( obj ) }
Converts the specified object to a JSON string and returns it.
@param {Object} obj - The object.
@param {Boolean} [prettyPrint=false] - Whether to pretty print the JSON.
@returns {String} The JSON string.
Converts the specified object to a JSON string and returns it .