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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:00:43+00:00 2026-06-18T04:00:43+00:00

I am facing some Pathetic Problem . Here I am Sharing my Code and

  • 0

I am facing some Pathetic Problem . Here I am Sharing my Code and Response ..

JSON Response :

JSON Log :

[
  {
    "0": "41",
    "intid": "41",
    "1": "\u8a00\u3046",
    "varfirstname": "\u8a00\u3046",
    "2": "test",
    "varlastname": "test",
    "3": "\u5730",
    "varusername": "\u5730",
    "4": "abc@gmail.com",
    "varemailid": "abc@gmail.com",
    "5": "qwert",
    "varpassword": "qwert",
    "6": "12345",
    "varmobileno": "12345",
    "7": "Enable",
    "mobileMessage": "Enable",
    "8": "",
    "varphoneno": "",
    "9": "Enable",
    "enumstatus": "Enable",
    "10": "2013-01-30",
    "date_insert": "2013-01-30",
    "11": "2013-01-30",
    "date_edit": "2013-01-30",
    "12": "210.211.252.1",
    "varipaddress": "210.211.252.1"
  }
]

From This Response I am Converting NSArray like this ..

// Create new SBJSON parser object 
SBJSON *parser = [[SBJSON alloc] init];  
NSArray *array = (NSArray *) [parser objectWithString:json_string error:nil];
NSLog(@"Array === %@",array);

And This Array Shows this Data :

Log :

Array ===
(
    {
    0 = 41;
    1 = "";
    10 = "2013-01-30";
    11 = "2013-01-30";
    12 = "210.211.252.1";
    2 = test;
    3 = "";
    4 = "abc@gmail.com";
    5 = qwert;
    6 = 12345;
    7 = Enable;
    8 = "";
    9 = Enable;
    "date_edit" = "2013-01-30";
    "date_insert" = "2013-01-30";
    enumstatus = Enable;
    intid = 41;
    mobileMessage = Enable;
    varemailid = "abc@gmail.com";
    varfirstname = "";
    varipaddress = "210.211.252.1";
    varlastname = test;
    varmobileno = 12345;
    varpassword = qwert;
    varphoneno = "";
    varusername = "";
})

Also I am Converting my VarfirstName Like this

NSDictionary *dataObject=[array objectAtIndex:0];
NSString *status = [dataObject objectForKey:@"varfirstname"];
NSLog(@"status -- %@",status);
NSString *myDecodedS = status;
NSString *myDecoded = [myDecodedS stringByReplacingPercentEscapesUsingEncoding:NSUTF16StringEncoding];
NSLog(@"HIIii %@",myDecoded);

Can Any one tell me how Could I Get data From That JSON Response …
I am not getting what I am doing wrong ?

  • 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-18T04:00:45+00:00Added an answer on June 18, 2026 at 4:00 am

    I copied your JSON into a text file, converted it back to data and used NSJSONSerialization class, and that worked fine:

    - (void)viewDidLoad {
        [super viewDidLoad];
        NSError *error;
        NSData *data = [[NSData alloc]initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"json" ofType:@"txt"]];
        id jsonObj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
        NSLog(@"%@",jsonObj);
        NSLog(@"%@",jsonObj[0][@"varfirstname"]);
    }
    

    The log output was:

    2013-02-01 22:47:40.361 JSONExperiment[4200:c07] (
            {
            0 = 41;
            1 = "\U8a00\U3046";
            10 = "2013-01-30";
            11 = "2013-01-30";
            12 = "210.211.252.1";
            2 = test;
            3 = "\U5730";
            4 = "abc@gmail.com";
            5 = qwert;
            6 = 12345;
            7 = Enable;
            8 = "";
            9 = Enable;
            "date_edit" = "2013-01-30";
            "date_insert" = "2013-01-30";
            enumstatus = Enable;
            intid = 41;
            mobileMessage = Enable;
            varemailid = "abc@gmail.com";
            varfirstname = "\U8a00\U3046";
            varipaddress = "210.211.252.1";
            varlastname = test;
            varmobileno = 12345;
            varpassword = qwert;
            varphoneno = "";
            varusername = "\U5730";
        }
    )
    2013-02-01 22:47:40.363 JSONExperiment[4200:c07] 言う
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im facing some problem with json and objective c. Atm i am using sbJson
I am facing some issues in loading a CSV file through SQL Loader. Here
I am using mysql and facing some problem. I want to retrieve last row
Hello to all I am here facing some situation of detecting url in asp.net
I am trying to implement Google Map but I am facing some problem with
I am facing some problem while adding values in numeric string: I have string
I am facing some issue in my listener while implementing JobQueueEvent, here is my
I am facing some problem during calculation of Numerical Integration with two data set.
I am facing some problem with UISlider programming. 1) style: I know we have
I am facing some problem with use of operator == in the following c++

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.