title: Using CKAN API to create employee lookup tool in Javascript
body: <p>I am trying to create an employee lookup tool that displays the name and extension of a person. The input is a field that people can start typing a name and it shows the name and the phone extension. I am using a CKAN api to access the dataset.</p>
  
  <pre><code>   $(document).ready(function(){
     $("#search-box").keyup(function(){
  
     var data = {
         resource_id: '3ef94617-bc46-4f4c-840d-8872c211dce9',
         q:$(this).val()
      };  
      $.ajax({
          url: "http://data.open.guelph.ca/api/action/datastore_search",
          type: "get",
          dataType: "jsonp",
          cache: "true",
          callback: "jquery",
          data:data,
          success: function(data){
              var html = [];
              $.each(data.result, function(index, d){            
              html.push(JSON.stringify(d,['Contact Name','Phone Extension'] , null, "&lt;br&gt;") );
              });
              $("#matches").show();
              $("#matches").html(html);
          }
      });
    });
  });
  </code></pre>
  
  <p>I can get an output but it is in JSON format. I have tried using the syntax:</p>
  
  <pre><code>d["Contact Name"]
  </code></pre>
  
  <p>instead of JSON Stringify but it doesn't work! I believe it may be the dataStore api but I do not know of an alternative.</p>
  
  <p>Any help would be appreciated, thanks.</p>