title: jQueryUI - Autocomplete with json file
body: <p>I'm trying to make an autocomplete using a json file but when I type on the input field, it shows nothing. I want to show only the data specified into "descricao", not into "codigo". Here is my code:</p>
  
  <pre><code>$(function() {
  $('#autocompleteGrupo').autocomplete({
      source: function (request, response) {
          $.ajax({
              url: "jsonGrupo.jsp",
              dataType: 'json',
              data: request,
              success: function( data ) {
                  response( $.map( data, function( item ) {
                      return {
                          label: value,
                          value: item.descricao
                      };
                  }));
              }
          }); 
      },  
      minLength: 2
  });
  });
  </code></pre>
  
  <p>my json file: </p>
  
  <pre><code>[{"codigo":"1","descricao":"Tecnologia da Informação"}] 
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>Lucas.</p>