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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:32:08+00:00 2026-05-27T14:32:08+00:00

I want this data to be displayed in the tableview . can anyone tell

  • 0

I want this data to be displayed in the tableview . can anyone tell me how to take data in the dictionary or array and display in the table? the data is shown as under

I want to display city and custno

{
"Status": 200,
"data": [
    {
        "dispatch": "11111",
        "locname": "Sample Company Location 1",
        "add1": "226 Engleman Street",
        "city": "Bardstown",
        "state": "KY",
        "zip": "40004",
        "contacts": [
            {
                "id": "1",
                "custno": "0000235",
                "locno": "00001",
                "salutation": "Mr.",
                "jobtitle": "IT Manager",
                "locktime": "",
                "lockby": ""
            },
            {
                "id": "11",
                "custno": "0000235",
                "locno": "00001",
                "contact": "Greg C",

                "extension": "205",
                "salutation": "Mr. ",
                "jobtitle": "President",
                "locktime": null,
                "lockby": null
            },
            {
                "id": "12",
                "custno": "0000235",
                "locno": "00001",

                "extension": "206",
                "salutation": "Mr.",
                "jobtitle": "Parts Manager",
                "locktime": null,
                "lockby": null
            },
            {
                "id": "13",
                "custno": "0000235",
                "locno": "00001",

                "extension": "202",
                "salutation": "Mr.",
                "jobtitle": "Service Manager",
                "locktime": "",
                "lockby": ""
            }
        ],
        "locationnotes": "5/20/2010 9:32:06 PM - Updated Information1111111",
        "custno": "0000235",
        "locno": "00001",
        "calledinby": "Teresa",
        "serviceagrno": "",
        "dispatchnotes": "This is a test dispatch",
        "pastcustomernotes": "",
        "pasttechnotes": [],
        "status": "Pending",
        "locationimage": "/images/content/2t_1318687848_100x100.gif",
        "pmstatus": "Yes"
    },
    {
        "dispatch": "4",
        "locname": "Sample Company Location 1",
        "add1": "226 Engleman Street",
        "city": "Bardstown",
        "state": "KY",
        "zip": "40004",
        "contacts": [
            {
                "id": "1",
                "custno": "0000235",
                "locno": "00001",

                "extension": "200",
                "salutation": "Mr.",
                "jobtitle": "IT Manager",
                "locktime": "",
                "lockby": ""
            },
            {
                "id": "11",
                "custno": "0000235",
                "locno": "00001",
                "phonefax": "555-555-1002",
                "extension": "205",
                "salutation": "Mr. ",
                "jobtitle": "President",
                "locktime": null,
                "lockby": null
            },
            {
                "id": "12",
                "custno": "0000235",
                "locno": "00001",
                "extension": "206",
                "salutation": "Mr.",
                "jobtitle": "Parts Manager",
                "locktime": null,
                "lockby": null
            },
            {
                "id": "13",
                "custno": "0000235",
                "locno": "00001",

                "extension": "202",
                "salutation": "Mr.",
                "jobtitle": "Service Manager",
                "locktime": "",
                "lockby": ""
            }
        ],
        "locationnotes": "5/20/2010 9:32:06 PM - Updated Information1111111",
        "custno": "0000235",
        "locno": "00001",
        "calledinby": "Teresa",
        "serviceagrno": null,
        "dispatchnotes": "11/3/2011 7:59 - This is a sample ATM call.",
        "pastcustomernotes": "",
        "pasttechnotes": [],
        "status": "Pending",
        "locationimage": "/images/content/2t_1318687848_100x100.gif",
        "pmstatus": "No"
    },
    {
        "dispatch": "5",
        "locname": "Sample Company Location 1",
        "add1": "226 Engleman Street",
        "city": "Bardstown",
        "state": "KY",
        "zip": "40004",
        "contacts": [
            {
                "id": "1",
                "custno": "0000235",
                "locno": "00001",
                "contact": "Michael B",
                "email": "michael@bonzahouse.com",
                "phoneoffice": "502-555-1000",
                "phonemobile": "502-555-0769",
                "phonefax": "555-555-1002",
                "extension": "200",
                "salutation": "Mr.",
                "jobtitle": "IT Manager",
                "locktime": "",
                "lockby": ""
            },
            {
                "id": "11",
                "custno": "0000235",
                "locno": "00001",

                "extension": "205",
                "salutation": "Mr. ",
                "jobtitle": "President",
                "locktime": null,
                "lockby": null
            },
            {
                "id": "12",
                "custno": "0000235",
                "locno": "00001",
                "extension": "206",
                "salutation": "Mr.",
                "jobtitle": "Parts Manager",
                "locktime": null,
                "lockby": null
            },
            {
                "id": "13",
                "custno": "0000235",
                "locno": "00001",
                "extension": "202",
                "salutation": "Mr.",
                "jobtitle": "Service Manager",
                "locktime": "",
                "lockby": ""
            }
        ],
        "locationnotes": "5/20/2010 9:32:06 PM - Updated Information1111111",
        "custno": "0000235",
        "locno": "00001",
        "calledinby": "",
        "serviceagrno": null,
        "dispatchnotes": "",
        "pastcustomernotes": "",
        "pasttechnotes": [],
        "status": "Pending",
        "locationimage": "/images/content/2t_1318687848_100x100.gif",
        "pmstatus": "Yes"
    }
]

}

  • 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-27T14:32:09+00:00Added an answer on May 27, 2026 at 2:32 pm

    You need to read that into an NSDictionary with either NSJSONSerialization (only available in iOS 5 and later) or another JSON framework (I recommend TouchJSON – https://github.com/TouchCode/TouchJSON).

    Here are examples:

    NSJSONSerialization:

    NSString *jsonString = <JSON_STRING>;
    NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding];
    NSError *error = nil;
    NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:jsonData
                                                               options:0 
                                                                 error:&error];
    

    TouchJSON:

    NSString *jsonString = <JSON_STRING>;
    NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding];
    NSError *error = nil;
    NSDictionary *dictionary = [[CJSONDeserializer deserializer] 
                                 deserializeAsDictionary:jsonData 
                                                   error:&error];
    

    Once you have the dictionary you can then extract the information you want. In your case it looks like you want to grab the data which is an array of objects. I assume you then want to show something about those objects in a table. So here’s the start of that code to get you going and then you should be able to figure out the rest:

    NSArray *data = [dictionary objectForKey:@"data"];
    
    // Then for each data object, you can get at say its `locname' attribute to show in a cell like so
    NSString *locname = [[data objectAtIndex:i] objectForKey:@"locname"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display data from database in DataGridView...This is my code...Its not working...Can
I have this JSF table which is used to display data. I want to
I want to display data into table view cell , how I can achive
In my application, I want to cache the displayed data in tableview so that
I have JSON data like this: [{id:3,name:jason},{id:4,name:karen}] I want to build a table view
I don't want to display my table view cells until the data has been
I am appending new data - $('#posts').append(data); But I want this new data to
I have 3d-data representing the atmosphere. Now I want to interpolate this data to
I have some data enclosed in HTML tags. I want to insert this data
I want to do something like this: c:\data\> python myscript.py *.csv and pass all

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.