function encode(val, callback) {
    function finishEncode(val) {
        callback(JSON.stringify(val));
    }
    decycle(val, finishEncode);
}
/**
 * Encode the specified object as a string.  Because of the asynchronus
 * conversion of Blob/File to string, the encode function requires
 * a callback
 * @param {Object} val the value to convert.
 * @param {function} callback the function to call once conversion is
 * complete.  The callback gets called with the converted value.
 */
Encode the specified object as a string.  Because of the asynchronus
conversion of Blob/File to string, the encode function requires
a callback
@param {Object} val the value to convert.
@param {function} callback the function to call once conversion is
complete.  The callback gets called with the converted value.
Encode the specified object as a string . Because of the asynchronus conversion of Blob / File to string the encode function requires a callback @param { Object } val the value to convert . @param { function } callback the function to call once conversion is complete . The callback gets called with the converted value .
function encode(val, callback) {
    function finishEncode(val) {
        callback(JSON.stringify(val));
    }
    decycle(val, finishEncode);
}
function encode ( val , callback ) { function finishEncode ( val ) { callback ( JSON . stringify ( val ) ) ; } decycle ( val , finishEncode ) ; }
Encode the specified object as a string.
Encode the specified object as a string .