title: Asp.net JQuery AutoComplete Not displaying data
body: <p>I am not seeing data returned from my webservice using the JQuery Autocomplete plugin. </p>
  
  <p>Im sure that this is an issue with the JQuery part of my code. (Firebug shows that I am getting a string back from my webservice formatted like below.)</p>
  
  <pre><code>"[\"Component 1\",\"Component 2\",\"Component 2\",\"Component 3\"]"
  </code></pre>
  
  <p>(I did assume that it might be the fact that there were 2 items the same, but removing the duplicate made no difference.)</p>
  
  <p>my JQuery code is...</p>
  
  <pre><code> $('#tags').autocomplete({             
                              source: function (request, response) {
                                      $.ajax({
                                              type: "POST",
                                              contentType: "application/json; charset=utf-8",
                                              url: "QuickSearch/QuickSearch.asmx/GetDealerships",
                                              data: "{'s':'" + request.term + "'}",
                                              dataType: "json",
                                              async: true,
                                              success: function (data){
                                                      response(data.d);
                                                  },
                                                  error: function (result) {
                                                          alert("Due to unexpected errors we were unable to load data");
                                                      }
                                  });
                      },
          minLength: 2
                  });
          });
  </code></pre>
  
  <p>So can anyone tell me what I have wrong in the success: function ? </p>
  
  <p>Thanks</p>
  
  <p>Edit</p>
  
  <pre><code>    var array = data.split(",");
      response(array);
  </code></pre>
  
  <p>The above code almost works, except my drop down box also has the " symbols wrapping each element. I can edit this to strip out the spare characters, but the fact that I am having to do that makes me suspect I havent got it quite right somewhere..</p>