title: How to set a valueKey for typeahead.js that points to a nested object property?
body: <p>Say, I have a json file</p>
  
  <pre><code>[{"id":1,"color":"green","user":{"id":3,"email":"example@gmail.com","name":"Bob Dylan"}}]
  </code></pre>
  
  <p>and I'm initializing typeahead.js object where I want "valueKey" property to point to a property "name" of a nested object "user" of the above json.</p>
  
  <pre><code>$('#dom-object-id').typeahead([
      {
          name: 'someName',
          prefetch: {
              url: '../assets/template/data/fromAbove.json', 
              ttl: 1
          },
          valueKey: "user.name", // this obviously doesn't work
          template: [
              '&lt;p&gt;{{user.name}}&lt;/p&gt;',
          ].join(''),
          engine: Hogan
      }
  ]);
  </code></pre>
  
  <p>Any ideas if it's possible to do that without changing the source code/overriding internal typeahead.js methods (actually overriding would be fine as well)?</p>
  
  <p>Thanks a lot in advance.</p>