function stringify(data) {
  if (typeof data === 'string') {
    return data;
  }
  return JSON.stringify(data);
}
JSON-serialize data. If the provided data is already a String,
return it as is.
@private
@param {*} data
@return {String}