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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:27:05+00:00 2026-06-07T13:27:05+00:00

I am a new programmer. I get the following response from server. How can

  • 0

I am a new programmer. I get the following response from server. How can i get the value of 0 index “Mile High Motors of Butte” and “Mile High Motors of Dillion” from following

Thanks

{
dealer =     (
            {
        0 = "Mile High Motors of Butte";
        1 = "3883 Harrison";
        2 = Butte;
        3 = 59701;
        4 = MT;
        5 = "http://www.buttesmilehighchryslerjeepdodge.com";
        6 = 2;
        7 = 0;
        address = "3883 Harrison";
        city = Butte;
        distance = 0;
        id = 2;
        name = "Mile High Motors of Butte";
        state = MT;
        url = "http://www.buttesmilehighchryslerjeepdodge.com";
        zip = 59701;
    },

           {
        0 = "Mile High Motors of Dillon";
        1 = "790 N Montana St";
        2 = Dillon;
        3 = 59725;
        4 = Montana;
        5 = "http://www.MileHighDillon.com";
        6 = 13;
        7 = "60.1235269593172";
        address = "790 N Montana St";
        city = Dillon;
        distance = "60.1235269593172";
        id = 13;
        name = "Mile High Motors of Dillon";
        state = Montana;
        url = "http://www.MileHighDillon.com";
        zip = 59725;
    }
);
success = 1;
}
  • 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-07T13:27:06+00:00Added an answer on June 7, 2026 at 1:27 pm

    Okay let’s see your structure (assuming that you have already deserialized your JSON string).
    You have an NSDictionary with two keys (dealer & success). Now dealer key is an NSArray with two NSDictionaries. So based on that we could do:

    NSDictionary *myJson; // Assuming that this is what you have posted
    
    NSArray *dealers = [myJson valueForKey:@"dealer"];
    
    // Now just grab whatever you need
    
    NSString *dealerOne = [[dealers objectAtIndex:0] valueForKey:@"0"]; //Mile High Motors of Butte
    NSString *dealerTwo = [[dealers objectAtIndex:1] valueForKey:@"0"]; //Mile High Motors of Dillon
    

    Or you could just iterate your dealers array like this:

    for (NSDictionary *dealer in dealers)
    {
      NSString *dealerName = [dealer valueForKey:@"0"];
      // Do something useful
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am new programmer.i am using Google Matrix API. i get the following response
Silly question from a new C programmer... I get a segmentation fault in the
I'm a new Python programmer who is making the leap from 2.6.4 to 3.1.1.
I'm a pretty new C# programmer. I was wondering if someone can fill me
When I execute the following java program, sometimes I get an empty response ,
I'm not a programmer/scripter. I just need to get the following script to write
I am a new android programmer and i am trying to create the following
New programmer here, I am trying to understand and break down this code below
So I am a new programmer and I just installed XCode on my Macbook
I am a very new programmer, I have made a couple basic applications, however

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.