lib/json/encodeOutput.js
function encodeOutputToJson(output) {
    var book = output.getBook();
    var generator = output.getGenerator();
    var options = output.getOptions();

    var result = encodeBook(book);

    result.output = {
        name: generator
    };

    result.options = options.toJS();

    return result;
}
function encodeOutputToJson(output) {
    var book = output.getBook();
    var generator = output.getGenerator();
    var options = output.getOptions();

    var result = encodeBook(book);

    result.output = {
        name: generator
    };

    result.options = options.toJS();

    return result;
}
function encodeOutputToJson ( output ) { var book = output . getBook ( ) ; var generator = output . getGenerator ( ) ; var options = output . getOptions ( ) ; var result = encodeBook ( book ) ; result . output = { name : generator } ; result . options = options . toJS ( ) ; return result ; }
Encode an output to JSON

@param {Output}
@return {Object}
Encode an output to JSON