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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:36:20+00:00 2026-05-22T15:36:20+00:00

I am attempting to read a json message using the json.framework. The message is

  • 0

I am attempting to read a json message using the json.framework. The message is a nested collection of meeting details. My desire is to iterate thought all of the meetings and create local meeting objects with the details read from the message. I see to get list of the 15 meetings that are in the json results but can’t get the individual values from the results.

Here is my sample code. I am using a file for the json message so that I don’t have to involve the server in this test. The json message can be downloaded here.

-(void)TestParse:(NSString *)response
{
    NSString *filePath = [[NSBundle mainBundle]pathForResource:@"conference_calls" ofType:@"json"];
    NSString *fileContent =[[NSString alloc]initWithContentsOfFile:filePath];

    parser = [SBJsonParser new];
    NSArray *results = [parser objectWithString:fileContent];

    NSLog(@"Number of itmems in the results: --> %i", [results count]);

    for(NSDictionary *conf in results){

        //Load local objects with the values of the Conf info.

        NSLog(@"This the description %@ ",[c valueForKey:"phone_number"]);

        NSLog(@"Number of Items in Dic: %i",[conf count]);

        NSLog(@"File contents: %@",[conf description]);
    }
  • 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-22T15:36:21+00:00Added an answer on May 22, 2026 at 3:36 pm

    The structure of your json is an array of dictionaries. But each dictionary has just a single key called “conference_call”, with the value for that key being another dictionary with all the details of that call.

    So something like this should work:

    for (NSDictionary* call in results) {
    
        // get the actual data for this call
        NSDictionary *callDetails = [call objectForKey:@"conference_call"];
    
        NSLog (@"Location is %@", [callDetails objectForKey:@"location"]);
    }
    

    Hope that helps.

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

Sidebar

Related Questions

I'm attempting to read the content of a XML file, using XmlTextReader in C#,
running UNIX through putty, and using vi and gcc. I am attempting to read
I'm attempting to run an external process with a timeout and read all of
I am attempting to read a large XML document and I wanted to do
I'm attempting to use TinyXML to read and save from memory, instead of only
I have been attempting to write some routines to read RSS and ATOM feeds
I have a ListBox that gets populated with items read from a JSON response.
I'm attempting to read a value from a registry entry with Powershell. This is
I am attempting to read from a url into a System.IO.Stream object. I tried
I am attempting to read audio data via AudioQueue. When I do so, I

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.