I am using angularstrap typeahead directive. Its working fine with single object json values but its not working when replacing the json with my json object array.

Demo Json: 

```js
typeahead= ["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia"];

```

```html
<input type="text" ng-model="typeaheadValue" bs-typeahead="typeahead">

```

The above code is working fine.

My JSON object array: 

```js
typeahead = [
    {id: 1, name: 'name1', email: 'email1@domain.com'},
    {id: 2, name: 'name2', email: 'email2@domain.com'},
    {id: 3, name: 'name3', email: 'email3@domain.com'}
];

$scope.typeaheadFn = function(query) {
   return $.map($scope.typeahead, function(contacts) {
      return contacts;
   });
}

```

```html
<input type="text" ng-model="typeaheadValue" bs-typeahead="typeaheadFn">

```

Please give me some solution for this.