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 7924781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:55:58+00:00 2026-06-03T17:55:58+00:00

Normally i’m parsing JSON feeds like (EXAMPLE) ; { AppStore: [ { Application: Game,

  • 0

Normally i’m parsing JSON feeds like (EXAMPLE) ;

{
    "AppStore": [
        {
            "Application": "Game",
            "KeyID": "zero"
        }
    ]
}

In my JSON i’m doing then

NSArray* Parse = [json objectForKey:@"AppStore"]; 

But i now want to parse the JSON of the AppStore it has an other structure

http://itunes.apple.com/lookup?id=387633954

{
    "resultCount": 1,
    "results": [
        {
            "kind": "software",
            "features": [
                "gameCenter",
                "iosUniversal"
            ],
            "supportedDevices": [
                "all"
            ],
            "isGameCenterEnabled": true,
            "artistViewUrl": "http://itunes.apple.com/us/artist/mcsebi/id387633957?uo=4",
            "artworkUrl60": "http://a5.mzstatic.com/us/r1000/072/Purple/v4/98/a6/56/98a656e8-666a-89ab-c8f0-878b61b9f8f2/Icon.png",
            "screenshotUrls": [
                "http://a3.mzstatic.com/us/r1000/076/Purple/v4/fe/36/80/fe3680ae-5439-a2f1-6675-d3246b64f333/mza_11015238406403423.png",
                "http://a4.mzstatic.com/us/r1000/099/Purple/v4/73/98/1c/73981cbf-fb79-dc38-9dac-61ab46c2ac60/mzl.gzibbhfx.png",
                "http://a3.mzstatic.com/us/r1000/103/Purple/v4/72/b6/87/72b68713-7e5a-f675-83c3-85c2f0e96df1/mzl.gykakuht.png",
                "http://a1.mzstatic.com/us/r1000/113/Purple/v4/fa/d6/c4/fad6c453-9da5-2506-2b06-42ed5ff6bd63/mzl.hqbrlhog.png",
                "http://a2.mzstatic.com/us/r1000/120/Purple/v4/9e/7a/13/9e7a1388-5089-11e7-0c03-3d1868abbb82/mzl.jogfcyqv.png"
            ],
            "ipadScreenshotUrls": [
                "http://a1.mzstatic.com/us/r1000/096/Purple/v4/1f/5a/92/1f5a9249-03b8-90dc-8226-18b1785d5f7d/mzl.ilqgfose.1024x1024-65.jpg",
                "http://a5.mzstatic.com/us/r1000/070/Purple/v4/79/74/6b/79746ba8-7ea0-6e81-93d0-9e2493412e21/mzl.saleskru.1024x1024-65.jpg",
                "http://a1.mzstatic.com/us/r1000/068/Purple/v4/12/38/91/1238914f-7387-9c9e-06e4-11a55871b04a/mzl.qmiockwv.1024x1024-65.jpg",
                "http://a4.mzstatic.com/us/r1000/091/Purple/v4/3b/cf/62/3bcf62e6-4d84-4fc0-e721-c328361f5c95/mzl.somobtxy.1024x1024-65.jpg",
                "http://a1.mzstatic.com/us/r1000/074/Purple/v4/e9/d3/e7/e9d3e7b7-b52c-e204-e4b6-1ab5de79e85a/mzl.nedztyfk.1024x1024-65.jpg"
            ],
            "artworkUrl512": "http://a3.mzstatic.com/us/r1000/115/Purple/v4/0d/9c/ec/0d9cec04-91b3-5fe2-fa40-100660250f4a/mzl.kavmnegm.png",
            "artistId": 387633957,
            "artistName": "McSebi",
            "price": 0.99,
            "version": "1.2",
            "description": "Connect M is a simple, but very addictive puzzle game. Connect two tiles of the same color and try to remove all the tiles within a time limit. Connect M features:\n \n· 37 levels in 9 worlds. Each world has a new feature\n· High quality graphics\n· High quality sound effects and soundtrack\n\nFollow us on Twitter: http://twitter.com/qt_games\n\nMany customers demanded to save a game explicitely.\nNow you can do it by pressing the disk icon after pausing a game.",
            "genreIds": [
                "6014",
                "7003",
                "7012"
            ],
            "releaseDate": "2010-08-24T02:46:16Z",
            "sellerName": "Sebastian Wegner",
            "currency": "USD",
            "genres": [
                "Games",
                "Arcade",
                "Puzzle"
            ],
            "bundleId": "com.mcsebi.connectm",
            "trackId": 387633954,
            "trackName": "Connect M",
            "primaryGenreName": "Games",
            "primaryGenreId": 6014,
            "releaseNotes": "Level selection:\nYou can now choose to start the game in every world you completed at least once.",
            "wrapperType": "software",
            "trackCensoredName": "Connect M",
            "trackViewUrl": "http://itunes.apple.com/us/app/connect-m/id387633954?mt=8&uo=4",
            "contentAdvisoryRating": "4+",
            "artworkUrl100": "http://a3.mzstatic.com/us/r1000/115/Purple/v4/0d/9c/ec/0d9cec04-91b3-5fe2-fa40-100660250f4a/mzl.kavmnegm.png",
            "languageCodesISO2A": [
                "DE",
                "EN",
                "IT",
                "NL"
            ],
            "fileSizeBytes": "24434872",
            "sellerUrl": "http://www.mcsebi.com",
            "trackContentRating": "4+"
        }
    ]
}

If i do;

NSArray* Parse = [json objectForKey:@"resultCount"]; or 
NSArray* Parse = [json objectForKey:@"results"]; 

The App is Crashing:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'
*** First throw call stack:
(0x352b888f 0x366df259 0x352b8789 0x352b87ab 0x311c05b3 0x8c9e3 0x352171fb 0x3116e747 0x3528cad3 0x3528c29f 0x3528b045 0x3520e4a5 0x3520e36d 0x3650a439 0x32304e7d 0x807a5 0x80240)
terminate called throwing an exception(lldb) 

Edit:

@interface NSDictionary(JSONCategories)
+(NSDictionary*)dictionaryWithContentsOfJSONURLString:(NSString*)urlAddress;
-(NSData*)toJSON;
@end

@implementation NSDictionary(JSONCategories)
+(NSDictionary*)dictionaryWithContentsOfJSONURLString:(NSString*)urlAddress
{
    NSData* data = [NSData dataWithContentsOfURL: [NSURL URLWithString: urlAddress] ];
    __autoreleasing NSError* error = nil;
    id result = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
    if (error != nil) return nil;
    return result;
}

-(NSData*)toJSON
{
    NSError* error = nil;
    id result = [NSJSONSerialization dataWithJSONObject:self options:kNilOptions error:&error];
    if (error != nil) return nil;
    return result;    
}
@end

//

- (void)fetchedData:(NSData *)responseData {

    NSError* error;
        NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData //1
                                                             options:kNilOptions 
                                                               error:&error];
        NSArray* UrlParse = [json objectForKey:@"resultCount"]; 

        NSDictionary* SParse = [urlParse objectAtIndex:0];
}
  • 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-03T17:56:13+00:00Added an answer on June 3, 2026 at 5:56 pm

    The error message says that responseData is nil, so it’s not really a JSON parsing problem.

    As you don’t show how you construct responseData, I don’t know what the actual problem is, but it happens before you attempt to parse it.

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

Sidebar

Related Questions

Normally my URLs look like the standard: www.example.com/controller/action Now I want to setup my
Normally I restart my GAE application by right-clicking on the project and then I
Normally you create a function using cfscript like: <cfscript> function foo() { return bar;
Normally I use imagecreatefromjpeg() and then getimagesize() , but with Firefox 3 I need
Normally when using VMWare Server 1.0.7 you are asked if you would like to
Normally an application bundle on OS X can only be started once, however by
Normally when you iterate through a mysql result you do something like this: while
Normally I create web application projects and use code-behind, but I have a requirement
Normally this would be something like: glutAddMenuEntry(-, <opid>); But it doesn't work. After looking
Normally, we can create properties like this, dynamic expando = new ExpandoObject(); expando.Price =

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.