.ajax and json response

.ajax and json response


I am having problems using an AJAX response.

Here is the JavaScript code:
  1.  $.ajax({
  2.     type: 'POST',
  3.     url: ajaxurl,
  4.     data: data,
  5.     dataType: "JSON",
  6.     success: function(r) {
  7.         alert('Got this from the server: ' + r);
  8. alert(r.description);
  9.     }
  10. });

The server uses json_encode, so the JSON is well-formed. Here is what I get from r.
  1. Got this from the server: Array
    (
        [pid] => 1
        [uid] => 0
        [title] => 18
        [description] => 18
        [start] => 2010-06-13
        [end] => 2010-06-13
        [priority] => 1
        [complete] => 0
        [approved] => 1
    )
    {"id":"147","description":"18","title":"18","image":"today.png","completed":0}

But when I try to get the individual values such as r.description, it is undefined. What do I need to do to use the individual values?

Thanks,
John