user6438311 user6438311 - 1 month ago 15
JSON Question

How to show json data in TableviewCell?

I am getting this data from the webservices

dict : {
"Apparel & Accessories" = 2;
"Automotive Services" = 0;
"Building and Construction" = 1;
"Business & Professional Services" = 0;
"Business Services" = 0;
"Community & Education" = 0;
Education = 0;
"Entertainment & Media" = 2;
FREIGHT = 0;
"Family & Community" = 0;
Finance = 0;
"Finance & Legal" = 1;
"Food & Dining" = 3;
"Health & Medicine" = 2;
"Home & Garden" = 0;
"Home Repair & Improvement" = 0;
"Industrial supplies & services" = 0;
"Information Technology" = 1;
Legal = 0;
PELLETS = 0;
"Personal Care" = 2;
"Public utilities & environment" = 0;
"Real Estate" = 0;
"Real Estate & Insurance" = 0;
Shopping = 0;
"Shopping & Specialty Stores" = 0;
"Sports & Recreation" = 0;
"TRANSPORT SERVICES" = 0;
Transportation = 0;
Travel = 1;
"Travel & Lodging" = 0;
Uncategorized = 0;
}


and i have to show this data in the tableview like this
enter image description here

Please tell me what to do, i am not getting idea to do this...
Thanks

Answer

I can gave you the idea how you can do this - just add the required keys in array.For e.g.: Education,freight Then you can show the data from array in table view.