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

The Archive Base Latest Questions

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

My JSON response looks like this: { themes: [ [ Direction des Routes Secteur

  • 0

My JSON response looks like this:

    {
    "themes": [
        [
            "Direction des Routes Secteur de Pithiviers ",
            "mairies",
            "Morailles 45300 PITHIVIERS LE VIEIL ",
            "0238345744",
            "48.823042",
            "2.365907"
        ],
        [
            "Crédit Mutuel Du Centre ",
            "banques",
            "agence de Pithiviers  33 r Am Gourdon 45300 PITHIVIERS",
            "0820834080",
            "48.703042",
            "2.145907"
        ]
    ]
}

As you can see, all the Keys are unknown, i don’t have Key:value, so, how can i refer to each value.

NSDictionary *allThemesDict=[[request responseString]JSONValue];
 NSArray *allThemesValues=[allThemesDict objectForKey:@"themes"];
    for (int i=0; i<[allThemesValues count]; i++) {
        NSDictionary *currentTheme=[allThemesValues objectAtIndex:i];//here i get the first 6 values, how can i display it?
        }
  • 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-28T15:27:44+00:00Added an answer on May 28, 2026 at 3:27 pm

    They’re arrays, not dictionaries. So you can just grab the array like this:

    NSDictionary *allThemesDict = [[request responseString] JSONValue];
    NSArray *allThemesValues = [allThemesDict objectForKey:@"themes"];
    for (int i=0; i<[allThemesValues count]; i++) {
        NSArray *currentTheme = [allThemesValues objectAtIndex:i];
        NSLog(@"currentTheme = %@", currentTheme);
    
        // Then access [currentTheme objectAtIndex:1] for example to get "mairies" in the first case.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm generating JSON response from PHP witch looks like this: { done:'1', options: [{
My JSON response looks like this : {sample:[{id:2,name:branch name},{id:3,name:branch name 2}]} My function looks
My JSON response looks like this : {sample:[{id:2,name:branch name},{id:3,name:branch name 2}]} My function looks
a sample of json response looks like this: {publicId:123,status:null,partner:null,description:null} It would be nice to
I have a JSON response that looks like this. I want to extract the
I've got a JSON response that looks like this: { COLUMNS:[SETTING_NAME,SETTING_VALUE,COLOR], DATA: [ [setting_1,100.0,yellow],
I have a JSON response from a web server that looks like this: {success:true,
i am getting the JSON response like this : [ {IndexID:1,IndexName:Consumer Confidence Index(CCI),IndexValue:34.79,Month:10,PercentageChanged:0,Position:0,Year:2011}, {IndexID:1,IndexName:Consumer
I am calling a REST webservice. The response looks something like this: <?xml version=\1.0\
I want to get some response from WebServer. The returning data looks like this:

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.