basic json_encode and jquery multiple values
===

This is my 3rd jquery script and I'm not sure what I'm doing. 

I want to read multiple json values from 3 different queries.
My JSON is returning what I was expecting: 

    key
     1    ["value1"]
     2    ["value2"]
    max   2101
    total 22

I can read the first two values using somethin like this:
    
      ajax(                                      
       url: 'api.php, data: "", dataType: 'json',  success: function(rows)        
        { 
          for (var i in rows)
          {
            var row = rows[i];
            value1 = row[0];
          }

How can I read the max value from the JSON? I tried thing like:
   
     $row[max], $row['max'], etc.

I'm reading the values with JavaScript

Thanks