function _convertEntriesToJSON(entries) {
        var jsonEntryList = [],
            entry,
            entryI;

        for (entryI = 0; entryI < entries.length; entryI++) {
            entry = entries[entryI];
            
            if (shouldShow(entry)) {
                var jsonEntry = {
                    data: entry.name,
                    attr: { id: "node" + _projectInitialLoad.id++ },
                    metadata: { entry: entry }
                };
                if (entry.isDirectory) {
                    jsonEntry.children = [];
                    jsonEntry.state = "closed";
                }
    
                // For more info on jsTree's JSON format see: http://www.jstree.com/documentation/json_data
                jsonEntryList.push(jsonEntry);
    
                // Map path to ID to initialize loaded and opened states
                _projectInitialLoad.fullPathToIdMap[entry.fullPath] = jsonEntry.attr.id;
            }
        }
        return jsonEntryList;
    }
@private
Given an array of NativeFileSystem entries, returns a JSON array representing them in the format
required by jsTree. Saves the corresponding Entry object as metadata (which jsTree will store in
the DOM via $.data()).

Does NOT recursively traverse the file system: folders are marked as expandable but are given no
children initially.

@param {Array.<Entry>} entries  Array of NativeFileSystem entry objects.
@return {Array} jsTree node data: array of JSON objects