title: jquery autocomplete not working with JSON data
body: <p>My PHP code return JSON data to jquery autocomplete but autocomplete not working</p>
  
  <p>Jquery autocomplete</p>
  
  <pre><code>$("input#txtaddkey").autocomplete({
              source: "keyword.php",
                  minLength: 2
          });
  </code></pre>
  
  <p>PHP code</p>
  
  <pre><code>$fetch = mysql_query("SELECT * FROM o_keyword where keyword like '%" . $query . "%'"); 
  
      while ($row = mysql_fetch_array($fetch, MYSQL_ASSOC)) {
          $row_array['id'] = $row['id'];
          $row_array['keyword'] = $row['keyword'];
  
          array_push($return_arr,$row_array);
      }
  echo json_encode($return_arr);
  </code></pre>
  
  <p>JSON data output</p>
  
  <pre><code>[{"id":"2","keyword":"Games"},{"id":"3","keyword":"Goa"}]
  </code></pre>
  
  <p>And while typing "Ga" I am getting empty li tag in front end.</p>