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

  • Home
  • SEARCH
  • 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 8100759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:49:54+00:00 2026-06-05T22:49:54+00:00

How can i convert this JSON array: This is a serialized JSON array 2012-06-18

  • 0

How can i convert this JSON array:

This is a serialized JSON array

    2012-06-18 09:22:07.647 TableView[468:f803] (
                {
                "Countries" = Iceland;
                 "id"=9046567;
                  "name"=abceeeffdsg;


            },
                {
                "Countries" = Greenland;
                "id"=3524695;
                "name"=gsfjgfsethju;
    },
                {
                 "Countries" = Switzerland;
                 "id"=4613583;
                 "name"=hdfkdgs;
        )

But I need to convert this arrays into following arrays:

     {
                   NSArray* Countries =         (
                        Iceland,
                        Greenland,
                        Switzerland,
                    );
NSArray *id=(9046567,3524695,4613583 );
NSArray * name=(abceeeffdsg,gsfjgfsethju,hdfkdgs);
                }

Or else i just wanted to display these items on my table view as a cell..
anyone can suggest some codes and explain this….

  • 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-05T22:49:55+00:00Added an answer on June 5, 2026 at 10:49 pm

    This will fetch all countries into an array:

    NSArray *countries = [myArrayFromJson valueForKey:@"Countries"];
    

    Note that the second snippet of yours is an NSDictionary with one key (‘Countries’) and an array of values. So it’s not just ‘an array’…

    So, if you would really like to have it like this you could do:

    // After collecting the values into 'countries' array like above...
    NSDictionary *countriesDict = [NSDictionary dictionaryWithObject:countries forKey:@"Countries"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can i convert this into an array? if someone searches for lo he
Does any on know how can I convert this $events = array( array(type =>
I convert my php array to json using json_encode, Than I record this json
How can you convert an array of strings represented in JSON format and convert
I Have a json array like [{name:A,value:A},{name:B,value:B},{name:C,value:C}] How can i pass(to the backend) and
is there anyway that I can convert this to use RSA encryption? im kinda
How can I convert this query to active record? UPDATE table_user SET email =
How can I convert this string into a byte? string a = 0x2B; I
How can I convert this from MS SQL SERVER to MySQL? /****** Object: StoredProcedure
How can i convert this $langClarContent = > &# 1059.,&#1095.,&#1080.,&# 1090.,&# 1077.,&# 1083.,Dokeos &#

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.