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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:27:11+00:00 2026-06-04T09:27:11+00:00

After json parsing i get the dictionary values like this way NSDictionary* json =

  • 0

After json parsing i get the dictionary values like this way

 NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData //1
                                                         options:kNilOptions error:&error];

After printing the json dictionary i get the below output

{
       Title= "hi";
        title2 = "welcome";
        FriendlyName = B325;
        Id = 1;
        MyLocation = "opp";
        sliders =         (
                        {
                NAme1 = hai;
                Name2 = "apple";
                Name3 = "world";
                Name4 = "happiness";
            }
        );
        Address = "northZone";
        Title3 = "hello world";
    },
        {
       title= "hi";
        title2 = "welcome";
        FriendlyName = B325;
        Id = 2;
        MyLocation = "opp1";
        sliders =         (
                        {
                NAme1 = hai;
                Name2 = "apple";
                Name3 = "world";
                Name4 = "happiness";
            }
        );
        Address = "westZone";
        Title3 = "hello world";
    },

    title= "hi";
    title2 = "welcome";
    FriendlyName = B325;
    Id = 3;
    MyLocation = "opp";
    sliders =         (
                    {
            NAme1 = hai;
            Name2 = "apple";
            Name3 = "world";
            Name4 = "happiness";
        }
    );
    Address = "southZone";
    Title3 = "hello world";
},
 '''''''''etc.,


NSMutableArray *resultArray = [json objectForKey:@"title"]; 

i want to store the dictionary strings into resultarray but execution has stopped in the above step

How will i store the dictionary values into an array?

please help me

  • 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-04T09:27:13+00:00Added an answer on June 4, 2026 at 9:27 am

    From the output you show, it looks like your JSON object is already an array of dictionaries. However, your statement/question does not make sense to me, so I can’t figure out what you really want.

    There are more fancy ways to access your data, but this should give you a basic idea and hopefully get you on your way…

    if ([json isKindOfClass:[NSArray class]]) {
        // Your top-object is an array of objects.  It can hold strings, numbers,
        // arrays, dictionaries (and NSNull).
    } else if ([json isKindOfClass:[NSDictionary class]]) {
        // your top level object is a dictionary
    }
    

    From here, you should be able to verify what you have. I bet you are getting an array of dictionaries. At that point, just iterate over the top level array and query each dictionary for its contents.

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

Sidebar

Related Questions

I am parsing a JSON file. After getting the NSDictionary, I parse the objects
I get from youtube JSON request (after a small parsing of the objects) these
I can't get exact out put after JSON parsing. strURLRootView is NSString Object of
I'm retreiving a JSON string and parsing it with jQuery with $.getJSON. After I
I make an ajax request, and the JSON response, after parsing, gives me the
i m parsing a json in table view.clicking the tableview navigates to nextview.after few
I'm trying to use external api and display its results (after json parsing) on
I have an Android app which uses Jackson parser for JSON parsing. After I've
after messing around with parsing a JSON response with GSON for a day, I
After parsing JSON data in a Data class, I set the UIViewController's NSArray *headlines

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.