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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:20:28+00:00 2026-05-27T05:20:28+00:00

I have a Rest Response like this { data: [ { id: adhoc_Expense_process:1:43, key:

  • 0

I have a Rest Response like this

{
  "data": [
  {
  "id": "adhoc_Expense_process:1:43",
  "key": "adhoc_Expense_process",
  "name": "Expense process",
  "version": 1,
  "deploymentId": "10",
  "resourceName": "org\/activiti\/examples\/adhoc\/Expense_process.bpmn20.xml",
  "diagramResourceName": "org\/activiti\/examples\/adhoc\/Expense_process.png",
  "startFormResourceKey": null,
  "graphicNotationDefined": "true"
},
{.
.
.
},
]
}

I am handling the response like this.

- (void)request:(RKRequest*)request didLoadResponse:(RKResponse*)response {  

    if ([request isGET]) {  
        // Handling GET /foo.xml  

        if ([response isOK]) {  
            // Success! Let's take a look at the data  

            NSLog(@"Retrieved XML: %@", [response bodyAsString]);  
            NSString *str = [response bodyAsString];

            NSDictionary *json = [str JSONValue];

            // Get all object
            NSArray *items = [json valueForKeyPath:@"data"];

            NSEnumerator *enumerator = [items objectEnumerator];
            NSDictionary* item;
            while (item = (NSDictionary*)[enumerator nextObject]) {
                NSLog(@"clientId = %@",  [item objectForKey:@"id"]);
                NSLog(@"clientName = %@",[item objectForKey:@"key"]);
                NSLog(@"job = %@",       [item objectForKey:@"version"]);
            }

        }  

    }

When i log the response with bodyAsString i can see the proper xml response on the console.But i am unable to parse it.I am using SBJSON.h or in other words the SBJSON framework.

Do you see anything wrong in the way i am parsing it.The error messages are like this..

2011-11-29 17:09:53.601 Views[6166:fb03] -[__NSCFString JSONValue]: unrecognized selector sent to instance 0x71c9200
2011-11-29 17:09:53.602 Views[6166:fb03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString JSONValue]: unrecognized selector sent to instance 0x71c9200'
  • 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-27T05:20:29+00:00Added an answer on May 27, 2026 at 5:20 am

    I added the following in BuildPhases settings of the project.

    sbjson-ios in “target dependencies”
    libsbjson-ios.a in “link binary with libraries”.

    I realised i added some such ones when i added the restkit framework.
    Thanks guys,it helped.

    Anusha

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

Sidebar

Related Questions

I am calling a REST webservice. The response looks something like this: <?xml version=\1.0\
Friends, I'm lost here. I have this WCF Rest service returning data in json
I have a REST web service that returns an xml result like this: -
I have a REST API where I would like to cache the JSON response
I have a REST data service where I want to allow the users to
We have a REST API which clients routinely POST and PUT data to. When
I'm creating a JSON REST API (lots of caps there), and already have Data.Aeson.Generic
I'm using this ExtJS REST proxy to get and post data to my REST
I'm using a REST webservice to retrieve some data. As a response I get
I build a WCF Rest service to provide data for another process. suppose that

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.