Q:

How to get array of array value count?

I need to get JSON response array "A" of [value count]. Here below I have posted my JSON response. Please help me. 
response : [ {

        A =  [  {

                    name : "sons";
                    age = [
                                4
                          ];
                },
                {
                    name : "rondo";
                    age = [
                                2
                          ];
                },

             ];

           } ]

NSArray *firstObject = @"A";
NSArray *count = [[[responsData objectAtIndex:0] objectForKey:firstObject]valueForKey:@"name"];

Here below my current console output :
2014-09-18 16:32:36.746 Myapp[4243:60b] TEST   : (
    sons,
    rondo
)

I need looks like below "name value count"
2014-09-18 16:32:36.746 Myapp[4243:60b] TEST   : (

     2
)

A:

Try this:
     NSArray *count = [[[responsData objectAtIndex:0] objectForKey:firstObject]valueForKey:@"name"];
     NSLog(@"count == %d",[count count]);

