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

  • Home
  • SEARCH
  • 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 8659543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:02:26+00:00 2026-06-12T16:02:26+00:00

I am building a project using story boards and a MasterView layout. I’m trying

  • 0

I am building a project using story boards and a MasterView layout. I’m trying to get the UITableView data from a JSON file (http://afterimagedesign.tk/topHits.json I don’t know if this is correct JSON or not, I’m new) so I call these methods in viewDidLoad()

responseData = [[NSMutableData data] retain];
NSURLRequest *topHitsRequest = [NSURLRequest requestWithURL:[NSURLURLWithString:@"http://afterimagedesign.tk/topHits.json"]];
[[NSURLConnection alloc] initWithRequest:topHitsRequest delegate:self];

and then in connectionDidFinishLoading:(NSURLConnection *)connection method, I call this:

[connection release]
NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
[responseData release];
NSDictionary *topHitsDictionary = [responseString JSONValue];
NSArray *topHitsArray = [topHitsDictionary valueForKey:@"title"];

The problem is (I think) that I get this error: “Instance method ‘-JSONValue’ not found.” I have looked for this for a while, and all of the tutorials I’ve seen use this method. Is it iOS 6 or something else? Thanks!

EDIT:

How do I add it to a UITableView? I tried cell.textLabel.text = [self.topKpop objectAtIndex:indexPath.row]; but I keep getting a SIGABRT error. I have gotten SIGABRT error, but this time it’s in the .m file.

  • 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-06-12T16:02:27+00:00Added an answer on June 12, 2026 at 4:02 pm

    I think the tutorials were using SBJson or similar JSON parser frameworks.

    If you don’t want to use any external frameworks, you can try JSONObjectWithData:options:error: from the NSJSONSerialization class, which is available since iOS 5.0.

    [connection release]
    NSError *jsonError = nil;
    NSDictionary *topHitsDictionary = [NSJSONSerialization JSONObjectWithData:responseData options:0 error:&jsonError];
    NSArray *topHitsArray = [topHitsDictionary valueForKey:@"title"];
    // ...
    [responseData release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using qmake for building a project of mine. I have been trying to
I seem to have hit a snag while building my project using Ant. The
I am currently building my project locally using MVC. The user enters some search
I am building a web application as college project (using Python), where I need
I am building an iOS, code scanner project using ZBar SDK . I am
I am using Maven with Nexus for building my project with hudson ci. Everytime
I'm building an installer using InstallScript MSI project. During installation I save some information
I've recently begun working on a project regarding GUI building using some form of
I'm using a sqlite3 database to store app's data. Instead of building a database
I am a beginner coder, i am building a project using C# Asp.Net in

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.