read list or map using jquery
<p>I have a list populated from my Controller and added to model object, I am trying to access the values of list at the client side using jquery. Is there a way of retreiving the values of list or a map at client side using jquery. Below is my code.</p>

<p>In Controller.</p>

<pre><code>List&lt;String&gt; list = new ArrayList&lt;String&gt;();
list.add("username");
list.add("password");
mav.addObject("list", list);
</code></pre>

<p>In js</p>

<pre><code>&lt;script type="text/javascript"&gt;
    var command = "${list}";
    alert("comand" + command);
&lt;/script&gt;
</code></pre>

<p>alert gives o/p as [username,password], How can I iterate over list and retrieve those values using jquery. Thanks in advance.</p>
