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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:31:44+00:00 2026-05-27T19:31:44+00:00

How can I parse this data to use it: I am getting below data

  • 0

How can I parse this data to use it: I am getting below data using NSString and showing it on console through NSLog.

HTML = {"session":"2a1d9a1db71b443d7a9702816663d8d","role":"normal","account":"uid\u003ddemo@url.com,o\u003dDemo,o\u003dUnd"}

I want to get the values of accounts and then want to use them to select one of them for which I will use picker view.

and this data array:

Group = ["DEMO"]

Thanks

  • 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-27T19:31:45+00:00Added an answer on May 27, 2026 at 7:31 pm

    you can take this html response in NSDictionary and then access it elements by using the following code

    NSDictionary *html = [responseString JSONValue];
    NSString * session = [html objectForKey:@”session”]//returns session id
    NSString * role = [html objectForKey:@”role”]
    NSString *accounts = [html objectForKey:@”account”]//This will get the accounts string with comma separated.
    NSArray *accountList = [account componentsSeparatedByString:@”,”];//It will return the array of all acount values which you can use in picker view to select one

    you can check this by checking the array size such that

    if(accountList.count>1)
    {
    //contains multiple accounts
    }
    else (if(accountList.count == 1)
    {
    //only one account
    }
    else
    {
    //No account
    }

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

Sidebar

Related Questions

This is only tangentially a programming question. Where can I find a simple-to-parse list
How i can parse and extract the parameters from an SQL Query using delphi?
I'm using RSS library so i can parse Atom and RSS in Ruby and
Is there a built parser that I can use from C# that can parse
Is there any tool that can parse a valid C program and generate a
Is there a tool that can parse C++ files within a project and generate
Does a tool exist that can parse text and output that text, hyper-linked to
I need a PHP Regex that can parse .strings files. In particular, it needs
Are there any .NET-specific tools out there that can parse / access the elementary
I am usin the nsxmlparser and am wondering how I can parse ISO-8859-1 correctly

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.