src/serialize.js
function serializeValue( value, indent, pad, space ) {
   return leftpad( JSON.stringify( value, null, indent ), pad, space );
}
function serializeValue( value, indent, pad, space ) {
   return leftpad( JSON.stringify( value, null, indent ), pad, space );
}
function serializeValue ( value , indent , pad , space ) { return leftpad ( JSON . stringify ( value , null , indent ) , pad , space ) ; }
Serialize an atomic value.
Treat as JSON and pad with spaces to the specified indent.
@private
@param {Object} value the value to serialize
@param {Number} [indent] the number of spaces to use for indent
@param {Number} [pad] the initial left padding
@param {String} [space] the character(s) to use for padding
@return {String} the serialized JavaScript code
Serialize an atomic value . Treat as JSON and pad with spaces to the specified indent .