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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:25:08+00:00 2026-06-07T09:25:08+00:00

I have JSon Values in NSString. I am trying to parse the values from

  • 0

I have JSon Values in NSString. I am trying to parse the values from the NSString JSonValue.

NSString Values like:

result =  [{"no":"01","send":"2010-05-03 01:26:48","from":"0000000000","to":"1111111111","text":"abcd"}]

I have tried the below code to parse the values no, send, from, to, text.

    NSString *jsonString = result;
    NSDictionary *jsonArray = [jsonString jsonValue]; //Am trying to save the values from NSString to NSDictionary the app getting crash here.
    NSLog(@"JsonDic : %@", jsonArray);

Can anyone please help to parse the JSon values from NSString? Thanks in advance.

  • 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-07T09:25:10+00:00Added an answer on June 7, 2026 at 9:25 am

    Gopinath. I have mentioned code please try this one. I have tested i can get the no.

    SBJSON *parser = [[SBJSON alloc] init];  
    
    NSDictionary *jsonArray = (NSDictionary *) [parser objectWithString:result error:nil];  
    NSLog(@"jsonArray : %@", jsonArray);
    
    NSArray *depositArray = [jsonArray valueForKey:@"no"];
    NSLog(@"depositArray : %@", depositArray);
    

    Please test and let me know if you face any problem. Thanks.

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

Sidebar

Related Questions

I have a json file that I'm trying to get values out of. One
I have a manager class, which update json data from web, get values... The
I have a JSON file, and i need to extract values from it and
I'm trying to parse JSON into NSDictionary. I have tried a lot of different
I have a method as follows use to correct empty values in Json +(NSString
I have an array that gets created from JSON. The array looks like this:
Im importing some data from JSON , i have the values in a enumeration
We have a JSON response which can contain null values (e.g. { myValue: null
I have a JSON file and want to parse value of variable second value
I have a JSON string that I would like to include as a value

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.