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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:33:36+00:00 2026-06-14T14:33:36+00:00

I am getting following the json response from a web-service api. I want to

  • 0

I am getting following the json response from a web-service api. I want to extract product data from the json. I also want to implement this using AFNetworking.

 {"products": [
    {
      "product_id": "1170",
      "name": "zzzz®",
      "sort_order": 0,
      "brand": "zzzas",
      "product_category_id": "1090",
      "location_ids": [
        "1078"
      ],
      "icon_url": "http://zzzzz.com/media/2502/zzzz.png",
      "icon_date": "Wed, 07 Nov 2012 14:03:47 GMT",
      "thumbnail_url": "http://zzzz.com/media/2591/zzdfs.png",
      "thumbnail_date": "Wed, 07 Nov 2012 14:04:02 GMT"
    },
    {
      "product_id": "1126",
      "name": "ddddd®",
      "sort_order": 1,
      "brand": "dddsas",
      "product_category_id": "1110",
      "location_ids": [
        "1095"
      ],
      "icon_url": "http://zzzzz.com/media/2507/ddddd.png",
      "icon_date": "Wed, 07 Nov 2012 14:03:48 GMT",
      "thumbnail_url": "http://zzzzz.com/media/2596/sssds.png",
      "thumbnail_date": "Wed, 07 Nov 2012 14:04:05 GMT"
    }
]}

Can anyone suggest a way to do this.me how the things will be done.

  • 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-14T14:33:37+00:00Added an answer on June 14, 2026 at 2:33 pm
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"link"]];
    AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request 
        success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
            NSDictionary *jsonDict = (NSDictionary *) JSON;
            NSArray *products = [jsonDict objectForKey:@"products"];
            [products enumerateObjectsUsingBlock:^(id obj,NSUInteger idx, BOOL *stop){
                NSString *productIconUrl = [obj objectForKey:@"icon_url"];
            }];
    
        } failure:^(NSURLRequest *request, NSHTTPURLResponse *response,
            NSError *error, id JSON) {
                NSLog(@"Request Failure Because %@",[error userInfo]); 
        }
    ];
    
    [operation start];
    

    Try this.

    Update 1: You can try this https://github.com/SSamanta/SSRestClient

    Update 2: https://github.com/SSamanta/SSHTTPClient (Using Swift)

    Available Pod : pod 'SSHTTPClient', '~>1.2.2'

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

Sidebar

Related Questions

Through an API, I am getting following JSON response, status: 550, created: 2012-07-02 19:00:58,
I'm getting the following JSON response from the server: [{id:1,pid:0,type:Individual,code:i,status:1}, {id:2,pid:0,type:Group,code:g,status:1}, {id:15,pid:0,type:asdasd,code:asd,status:1}, {id:16,pid:0,type:asdas,code:asd,status:1}, {id:17,pid:0,type:my
I have the following json response from server: $data=[[ {left:{p1:{x:0,y:0},p2:{x:0,y:15}}, right:{p1:{x:15,y:0},p2:{x:15,y:15}}, up:{p1:{x:0,y:0},p2:{x:15,y:0}}, bottom:{p1:{x:0,y:15},p2:{x:15,y:15}}}, {left:{p1:{x:0,y:15},p2:{x:0,y:30}},
i am getting following error while getting data from dictionary -[__NSCFString objectForKey:]: unrecognized selector
I'm struggling getting the JSON string that was sent from a web page to
I am getting response from server side in the form of json array.I need
For a specific requirement in my project, I want to retrieve JSON response from
I am importing JSON data from a public database URI http://data.seattle.gov/api/views/3k2p-39jp/rows.json and the rows
I am working some portion of twitter api, and getting some JSON response using
I am getting following encoded html as a json response and has no idea

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.