> function formatItem(row) { > return row; > > };
I'm not sure that formatItem is allowed to return more than one item, but you could return the first employee like this: function formatItem(row) { return row.employees[0]; }; or better yet, use the search term to do something more reasonable: function formatItem(row, i, count, term) { // 'term' is the search term, use it :-) .... };