modules/utils.js
function serialize(value, indent) {
    "use strict";
    if (isArray(value)) {
        value = value.map(function _map(prop) {
            return isFunction(prop) ? prop.toString().replace(/\s{2,}/, '') : prop;
        });
    }
    return JSON.stringify(value, null, indent);
}
function serialize(value, indent) {
    "use strict";
    if (isArray(value)) {
        value = value.map(function _map(prop) {
            return isFunction(prop) ? prop.toString().replace(/\s{2,}/, '') : prop;
        });
    }
    return JSON.stringify(value, null, indent);
}
function serialize ( value , indent ) { "use strict" ; if ( isArray ( value ) ) { value = value . map ( function _map ( prop ) { return isFunction ( prop ) ? prop . toString ( ) . replace ( / \s{2,} / , '' ) : prop ; } ) ; } return JSON . stringify ( value , null , indent ) ; }
Serializes a value using JSON.

@param  Mixed  value
@return String
Serializes a value using JSON .