autocomplete with JsonConvert.SerializeObject
<p>Am just trying to display a autocomplete list in my asp page, am using JsonConvert.SerializeObject here, when I search for the items starts with <code>1</code>, after serializing the data, while debugging I can see the data like,</p>

<pre><code>"[{\"PharmacyItemName\":\"100GM\",\"PharmacyItemId\":1}
      ,{\"PharmacyItemName\":\"12 HERB SHAMPOO 100ML\",\"PharmacyItemId\":2}
      ,{\"PharmacyItemName\":\"12HERB SHAMPOO 50ML\",\"PharmacyItemId\":3}
      ,{\"PharmacyItemName\":\"1ST AID PLASTER\",\"PharmacyItemId\":4}
      ,{\"PharmacyItemName\":\"1ST BITES RAGI&amp;DAL 400G\",\"PharmacyItemId\":19712}]"
</code></pre>

<p>and in the jQuery am displaying the result like,</p>

<pre><code>success: function (data) {
               var s = jQuery.parseJSON(data.d);

               if (s != null) {
               response($.map(s, function (item) {
                        return {
                            label: item.PharmacyItemName,
                            value: item.PharmacyItemName
                        }
                    }));
               }
               else {
                   return null;
               }
             },
             error: function (XMLHttpRequest, textStatus, errorThrown) {
                    alert(textStatus);
                }
</code></pre>

<p>here am getting the <code>PharmacyItemName</code> correctly when I search the names starts with numeric values like <code>1,2,3 etc.,</code>. But, when I try to search the names starts with strings like <code>a,b etc</code> in the webservice I can see the values like,</p>

<pre><code>[{\"PharmacyItemName\":\"S AMLONG 2.5MG TAB\",\"PharmacyItemId\":15860}
    ,{\"PharmacyItemName\":\"S AMLONG 5MG TAB\",\"PharmacyItemId\":15861"}]
</code></pre>

<p>but it throws error in the jQuery part like, <code>Microsoft JScript runtime error: Unable to get value of the property 'toString': object is null or undefined</code>.</p>

<p>Y it throws like this, can anyone help me here</p>
