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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:22:00+00:00 2026-06-10T06:22:00+00:00

I have a Json Response like this. { ss: 1, tc: 75, pn: 1,

  • 0

I have a Json Response like this.

{
    "ss": 1,
    "tc": 75,
    "pn": "1",
    "users": [
        {
            "id": "123456",
            "ne": "John Smith",
            "el": "example@example.com"
        },
       {
            "id": "3213243",
            "ne": "iPhone Guy",
            "el": "sdads@dsss.com"
        }
]
}

Code:

[manager loadObjectsAtResourcePath:@"path/to/resources" usingBlock:^(RKObjectLoader* loader) {


        loader.method = RKRequestMethodPOST;
        loader.params = inputDict;

        loader.onDidLoadResponse  = ^(RKResponse *response)
        {

            NSLog(@"Response is %@",response);// here it contains ss value

        };
        loader.onDidLoadObjectsDictionary = ^(NSDictionary *dictionary)
        {
           // NSLog(@"Dictionary is %@",dictionary);

        };
        loader.onDidFailWithError = ^(NSError *error)
        {
            NSLog(@"Restkit Error is %@",error);  
        };
        loader.onDidLoadObjects = ^(NSArray * objects)
        {
           NSLog(@"Object Count is %d",[objects count]);

        };
    }];

From that above response, i would like to check if the success(ss) is 0 or 1. if it is 0, i don’t need to map users else i want to map users. how can i do that. Do i need to map ss,tc and pn or is it possible to check ss value w/o mapping.

Any help is appreciated.

  • 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-10T06:22:01+00:00Added an answer on June 10, 2026 at 6:22 am

    I found the solution

    #import <RestKit/RKJSONParserJSONKit.h>
    
    RKJSONParserJSONKit *parser = [RKJSONParserJSONKit new];
    NSDictionary *ditVal = [parser objectFromString:[response bodyAsString] error:nil];
    

    the dictionary value contains value and key. from that i can get the value of ss.

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

Sidebar

Related Questions

I have a json string like this: http://pastebin.com/ckUZadwL I'm trying to use gson to
I have a JSON response from Facebook liking like this. [ {uid=>123, name=>Test, is_app_user=>true},
I have a json response like: { total: 2, success: true, rows: [ {a1_id:7847TK10,
I have this JSON response string: {d:{\ID_usuario\:\000130\,\Nombre\:null,\Vipxlo\:0,\Provmun\:null,\Descuentos\:null,\Listaviplocal\:null}}` With this code: - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
If i have this json response {error:repeated} Why the alert is not showed? It
We have a JSON response which can contain null values (e.g. { myValue: null
I have a JSON response that is formatted from my C# WebMethod using the
Basically, I have a JSON response from the Twitter API containing a timeline. I
I'm developing an android app, and I need to have a json response of
I have the following JSON object: { response: { status: 200 }, messages: [

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.