title: Parsing JSON array in JQuery
body: <p>I'm trying to get the hand on JQuery and JSON using an ASP.NET webservice. The Webservice returns this result:</p>
  
  <pre><code>{
      MyResult: {
          Ticket: {
              "Author": "rd",
              "CssClass": "RED",
              "ExpirationDateTime": "2009-08-16T16:55:43.577+02:00",
              "id": "38",
              "Message": "We are going down",
              "ModifiedDateTime": "2009-08-17T11:14:20.5+02:00",
              "MoreInfo": null 
          } 
      }
  }
  </code></pre>
  
  <p>On the client side I'm using JQuery to get the result using the ajax function like this:</p>
  
  <pre><code>$.ajax({
     type: "POST",
     url: "TickerFeeder.asmx/GetTicket",
     data: "{}",
     contentType: "application/json; charset=utf-8",
     dataType: "json",
     success: function(resultJSON) {
       //-- Please fill your code here for getting the first item from the array into variables
     }
  </code></pre>
  
  <p>But I'm missing out the stuff how to retrieve the first item from the JSON array into some variables. Something like this (pseudo-code):</p>
  
  <pre><code>var message = resultJSON[0].Message
  var cssclass = resultJSON[0].CssClass
  </code></pre>
  
  <p>Anybody with a hint,help?</p>
  
  <p>Thanks for your help
  Cheers
  Frank</p>