title: Invalid 'in' operand a
body: <p>I am getting error from javascript </p>
  
  <blockquote>
    <p>"[object Object]" TypeError: invalid 'in'
    operand a</p>
  </blockquote>
  
  <p>when I try to do ajax like </p>
  
  <pre><code>.data("ui-autocomplete")._renderItem = function( ul, item ) {
        return $( "&lt;li class='submitmore' &gt;&lt;/li&gt;" )
        .data( "item.autocomplete", item )
        .append('&lt;p class="searchdata" onClick="asd(\'' + item + '\')"&gt;'+item.value+'&lt;div class="clear"&gt;&lt;/div&gt;')
  
  };
  
  function asd(itemnew){
  
          console.log(itemnew);
  
          $.each(itemnew, function (key, value) {
                console.log("item : "+ key + " value : " + value);
          });
  
  }
  </code></pre>