{"action":"created","issue":{"url":"https://api.github.com/repos/sergeyt/meteor-typeahead/issues/133","repository_url":"https://api.github.com/repos/sergeyt/meteor-typeahead","labels_url":"https://api.github.com/repos/sergeyt/meteor-typeahead/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/sergeyt/meteor-typeahead/issues/133/comments","events_url":"https://api.github.com/repos/sergeyt/meteor-typeahead/issues/133/events","html_url":"https://github.com/sergeyt/meteor-typeahead/issues/133","id":118110512,"number":133,"title":"Full JSON object string is displayed in typeahead input when selecting a result","user":{"login":"valtrem","id":4313339,"avatar_url":"https://avatars.githubusercontent.com/u/4313339?v=3","gravatar_id":"","url":"https://api.github.com/users/valtrem","html_url":"https://github.com/valtrem","followers_url":"https://api.github.com/users/valtrem/followers","following_url":"https://api.github.com/users/valtrem/following{/other_user}","gists_url":"https://api.github.com/users/valtrem/gists{/gist_id}","starred_url":"https://api.github.com/users/valtrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valtrem/subscriptions","organizations_url":"https://api.github.com/users/valtrem/orgs","repos_url":"https://api.github.com/users/valtrem/repos","events_url":"https://api.github.com/users/valtrem/events{/privacy}","received_events_url":"https://api.github.com/users/valtrem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-20T19:32:33Z","updated_at":"2016-03-16T11:37:46Z","closed_at":null,"body":"When using meteor-typeahead with meteor MongoDb Collection, the full JSON object String is displayed in the input field when going through the search results with up/down keys. \r\n\r\nFor example, this shows up in the input field : \r\n{\"_id\":\"AtsygsnvRrTbBF8rq\",\"key\":\"decisionMaking\",\"nameFr\":\"Aisance dans la prise de décisions\",\"nameEn\":\"Ease in decision making\"}\r\n\r\nI would expect the input to only display : \"Aisance dans la prise de décisions\" when using  data-value-key=\"nameFr\" for instance.\r\n\r\nHere is my code : \r\n\r\n```html\r\n  <input class=\"form-control typeahead\" type=\"text\"\r\n                       placeholder=\"{{_ \"selectSkillAptitudeProfession\"}}\"\r\n                       autocomplete=\"off\" spellcheck=\"off\"\r\n                       data-sets=\"skillsAptitudesProfessionsDS\" data-select=\"selected\"\r\n                       data-value-key=\"nameFr\" />\r\n```\r\n\r\n```javascript\r\nTemplate.profile.helpers({\r\n    skillsAptitudesProfessionsDS: function() {\r\n        return [\r\n            {\r\n                name: 'skills',\r\n                valueKey: 'nameFr',\r\n                local: function(){ return Skills.find().fetch()},\r\n                header: '<b>'+TAPi18n.__(\"occupationSkills\")+'</b>',\r\n                template: 'autoCompleteResults'\r\n            } ];\r\n    }\r\n});\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sergeyt/meteor-typeahead/issues/comments/197276968","html_url":"https://github.com/sergeyt/meteor-typeahead/issues/133#issuecomment-197276968","issue_url":"https://api.github.com/repos/sergeyt/meteor-typeahead/issues/133","id":197276968,"user":{"login":"AlekhyaYelchuru","id":10811463,"avatar_url":"https://avatars.githubusercontent.com/u/10811463?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekhyaYelchuru","html_url":"https://github.com/AlekhyaYelchuru","followers_url":"https://api.github.com/users/AlekhyaYelchuru/followers","following_url":"https://api.github.com/users/AlekhyaYelchuru/following{/other_user}","gists_url":"https://api.github.com/users/AlekhyaYelchuru/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekhyaYelchuru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekhyaYelchuru/subscriptions","organizations_url":"https://api.github.com/users/AlekhyaYelchuru/orgs","repos_url":"https://api.github.com/users/AlekhyaYelchuru/repos","events_url":"https://api.github.com/users/AlekhyaYelchuru/events{/privacy}","received_events_url":"https://api.github.com/users/AlekhyaYelchuru/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T11:37:46Z","updated_at":"2016-03-16T11:37:46Z","body":"\r\nSame problem here..\r\n"}}