function encodeGlossary(glossary) {
    var file = glossary.getFile();
    var entries = glossary.getEntries();

    return {
        file: encodeFile(file),
        entries: entries
            .map(encodeGlossaryEntry).toJS()
    };
}
function encodeGlossary(glossary) {
    var file = glossary.getFile();
    var entries = glossary.getEntries();

    return {
        file: encodeFile(file),
        entries: entries
            .map(encodeGlossaryEntry).toJS()
    };
}
function encodeGlossary ( glossary ) { var file = glossary . getFile ( ) ; var entries = glossary . getEntries ( ) ; return { file : encodeFile ( file ) , entries : entries . map ( encodeGlossaryEntry ) . toJS ( ) } ; }
Encode a glossary to JSON

@param {Glossary}
@return {Object}
Encode a glossary to JSON
Encode a glossary