need javascript array format
<p>I am looking to create following format in array in javascript. </p>

<p>Each item has:</p>

<ul>
<li>url -> string (which is login URL)</li>
<li>name -> string</li>
<li>inputs -> array</li>
</ul>

<p>And each input is: </p>

<ul>
<li>name -> string</li>
<li>type -> string</li>
<li>value -> string</li>
</ul>

<p>Please guide me , how to do this in JavaScript</p>
