Json Parser output display in tableview
<p>I am trying to parse using JSON Parser and the result which i get i have to put it into table view. I've passed a constant key value and a string  .</p>

<p>Is there parsing steps wrong? or missed.</p>

<p>I have included the code for the JSON parser.</p>

<p>Thanks in advance.</p>

<p>SBJSON *parser = [[SBJSON alloc] init];</p>

<pre><code>NSString *urlString =[NSString stringWithFormat:@"http://api.shopwiki.com/api/search?key=%@&amp;q=%@",apiKey, string];
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL: url];
NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
NSString *json_string = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];

NSMutableArray *statuses = [[NSMutableArray alloc]init];
statuses = [parser objectWithString:json_string error:nil];
NSLog(@"Array Contents: %@", statuses);



NSMutableArray *statuses0 = [[NSMutableArray alloc]init];
statuses0 = [statuses valueForKey:@"offers"];
NSLog(@"Array Contents: %@", statuses0);


//For Title
NSMutableArray *statuses1 = [[NSMutableArray alloc]init];
statuses1 = [[[statuses valueForKey:@"offers"] valueForKey:@"offer"]valueForKey:@"title"];
NSLog(@"Array Contents 4 Title: %@", statuses1);
</code></pre>

<p>Here in statuses1 array i get 20 objects which are all titles, now i just want to display that titles into tableview:-</p>

<p>snippet code for tableview:-</p>

<ul>
<li><p>(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
NSLog(@"status count:%d",[statuses1 count]);
return [statuses1 count];
}</p></li>
<li><p>(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSLog(@"Inside Tableview");
int counter=indexPath.row;</p>

<p>NSString *CellIdentifier = [NSString stringWithFormat:@"%d",counter];</p>

<p>UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) 
   {
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
    cell.selectionStyle=UITableViewCellSelectionStyleNone;</p>

<p>}</p>

<p>NSLog(@"Inside Tableview 1");</p>

<p>cell.textLabel.text=[statuses1 objectAtIndex:indexPath.row];</p>

<p>NSLog(@"Inside Tableview 2");</p>

<p>return cell;
}</p></li>
</ul>

<p>i get Bad excess exception whten it hits on :-
    cell.textLabel.text=[statuses1 objectAtIndex:indexPath.row];</p>

<p>Please give me the solution 
thanks in advance:-</p>
