index.js
function(data){
		return typeof data === 'object' 
			? JSON.stringify(data) 
			: (typeof data === 'string' || typeof data === 'number' ? String(data) : null);
	}
function(data){
		return typeof data === 'object' 
			? JSON.stringify(data) 
			: (typeof data === 'string' || typeof data === 'number' ? String(data) : null);
	}
function ( data ) { return typeof data === 'object' ? JSON . stringify ( data ) : ( typeof data === 'string' || typeof data === 'number' ? String ( data ) : null ) ; }
Private serialization method
@private
@param data {Object} || {String} || {Number}
@returns {String} or null on fail
Private serialization method