Retrieve data from json restful web service to jquery using $.each()
<p>I have this code on my restful web service. it returns list which outputs this</p>

<pre><code>[{"InventoryName":"290.000000"},{"InventoryName":"80.000000"},{"InventoryName":"50.000000"}]
</code></pre>

<p>My question is how can i retrieve it using <code>jquery.each()</code></p>

<p>Can you give a code snippet for this one?? THANK YOU</p>

<pre><code>        List&lt;Inventory&gt; IService1.GetInventory()
    {
        List&lt;Inventory&gt; list = new List&lt;Inventory&gt;();using (SqlConnection testconn = new SqlConnection(connect))
        {
            if(testconn.State == ConnectionState.Closed)
            {
                testconn.Open();
            }

            using(SqlCommand testcmd = new SqlCommand("select * from inventoryitem",testconn))
            {
                SqlDataReader reader = testcmd.ExecuteReader();
                while( reader.Read())
                {
                    Inventory testObj = new Inventory();
                    testObj.InventoryName = reader["StandardCost"].ToString();
                    list.Add(testObj);
                }
            }
        }
        return list;
    }
</code></pre>
