How can I get information from a list inside json using jquery or javascript?
<p>I have the following C# class:</p>

<pre><code>public class JsonBackup
{
    public int Added { set; get; }
    public int DEVCount { set; get; }
    public int DS1Count { set; get; }
    public IList&lt;ViewEvent&gt; Events { get; set; }
}
</code></pre>

<p>and this is used to return a Json string like this:</p>

<pre><code>return Json(new JsonBackup
            {
                Added = added,
                DEVCount = devCount,
                DS1Count = ds1Count,
                Events = t.Events
            });
</code></pre>

<p>I have the following javascript call:</p>

<pre><code>$.ajax({
        url: $(this).attr('data-href'),
        dataType: 'json',
        type: 'POST'
    })
        .done(function (data) {
            backupDone(data, ajaxElapsed);
        })
</code></pre>

<p>I know that I can get the data.Added etc properties but how can I get the Event information that's 
part of the Events list?</p>

<p>Here's an example of the C# class that has the event data:</p>

<pre><code>public class ViewEvent {
    public long Elapsed { get; private set; }
    public ET EventType { get; private set; }
    public string Description { get; private set; }
    public string Message { get; private set; }
    public int Quantity { get; private set; }
}
</code></pre>

<p>What I really need is some JQuery or javascript way to get the following information out of what is returned from the Ajax call and add it to the ul element with the id="stats"</p>

<pre><code>&lt;li&gt;@viewEvent.Description : @viewEvent.Elapsed ms&lt;/li&gt;
</code></pre>
