Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6678677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:16:16+00:00 2026-05-26T04:16:16+00:00

I am trying to pars the json data and display in table My JSON

  • 0

I am trying to pars the json data and display in table
My JSON data is like this

{"isError":false,"ErrorMessage":"","Result":{"Count":4,"Data":[{"ContentID":"127_30_1309793318065","ContentTypeID":1,"UserCaption":"Gandhinagar(Kanjurmarg)","UserComment":"central\n","DateRecorded":"\/Date(1309793318000+0530)\/","Data":"","ShareType":true,"Views":0,"PlayTime},{},{},{}];};isError = 0;}

I am prasing like this

-(void)connectionDidFinishLoading:(NSURLConnection *)connection 
{      
    NSString *loginStatus = [[NSString alloc] initWithBytes: [webData mutableBytes] length:[webData length] encoding:NSUTF8StringEncoding]; 
    NSLog(@"%@",loginStatus);  



    //this is for the getting the data from the server with help of JSON
    NSString *json_string = [[NSString alloc] initWithData:webData encoding:NSUTF8StringEncoding]; 
    NSDictionary *result = [json_string JSONValue];
    /
    //this for holding the Array value which come from the server 
    NSMutableArray *results = [[NSMutableArray alloc] init];
    for (int index = 0; index<[reviewsvalues count]; index++)
    {
        NSMutableDictionary * value = [reviewsvalues objectAtIndex:index];
        ReviewsResult * result = [[ReviewsResult alloc] init];
        result.User_Caption = [value objectForKey:@"UserCaption"];
        result.ContentType_Id = [value objectForKey:@"DateRecorded"];
        result.Average_Rating = [value objectForKey:@"AverageRating"];
        //OVER here MY APP GET CRASH 


    }


} 

BUt it get crash and give error

[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:16:17+00:00Added an answer on May 26, 2026 at 4:16 am

    The problem is simple.

    reviewsvalues should be an NSDictionary and you should not be calling objectAtIndex: for the reviewsvalues.

    Instead you should call valueForKey like

    int count = [[reviewsvalues valueForKey:@"Count"] intValue];
    NSArray *reviewsArray = [reviewsvalues valueForKey:@"Data"];
    int count = [reviewsArray count];
    
    cell.textLabel.text = [[reviewsArray objectAtIndex:indexPath.row] valueForKey:@"ContentID"];
    

    Hope this helps you.

    Please let me know if you want more help on this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to get my css / C# functions to look like this: body {
Trying to do this sort of thing... WHERE username LIKE '%$str%' ...but using bound
Trying to set RowHeight like this(in code): dgvTruckAvail.RowTemplate.Height = 48; Doesnt' work. I also
Trying to keep all the presentation stuff in the xhtml on this project and
Trying to honor a feature request from our customers, I'd like that my application,
I am trying to convert this code from Protoytpe to JQuery: Event.observe(window, 'load', init,
Trying to find some information on this but am unable to get any results
Trying to understand radix sort for my data structures class. My teacher showed us
Trying to launch and pass tel. no. to skype by this code from my
Trying to get my 1 table row to automatically clone exactly 24 times and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.