How create and read javascript object for save the following data structure?
<p>I need to create the following data structure:</p>

<pre><code>userid, onlinetime, offlinetime
</code></pre>

<p>I need the user id to be repeated in the list.</p>

<p>Something like this:</p>

<pre><code>userid: 1, onlinetime: 11:10:30, offlinetime: 11:18:12
userid: 1, onlinetime: 11:14:14, offlinetime: 11:52:41
userid: 2, onlinetime: 8:08:14, offlinetime: 1:15:00
</code></pre>

<p>How can I create this object, or a list? </p>

<p>How can I read this object or list? (I need to compare on-line and off-line time.)</p>
