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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:41:18+00:00 2026-06-15T02:41:18+00:00

When I parse my Json file on execution of this line model.userProfileObj.userFirstName = [NSString

  • 0

When I parse my Json file on execution of this line

model.userProfileObj.userFirstName = [NSString stringWithFormat:@"%@",[[responseDict valueForKey:@"Profile"] valueForKey:@"first_name"]];

Profile is my dictionary and first_name its inner variable. like:

[
    {
        "Profile": {
            "id": "13",
            "user_id": "13",
            "first_name": "Myname",
            "profile_image": "13-IMG_169.png",
        }
    }
]

Assign the following string to model.userProfileObj.userFirstName but I need MyName only not ( and ” in variable.

(
    "Myname"
)
  • 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-15T02:41:19+00:00Added an answer on June 15, 2026 at 2:41 am

    Your result in responseDict is in array format and you are using it as dictionary thats why you are getting result like this

    (
        "Myname"
    )
    

    so just do one thing in your code.. [responseDict objectAtIndex:0]

    Your code

    model.userProfileObj.userFirstName = [NSString stringWithFormat:@"%@",[[[responseDict objectAtIndex:0] valueForKey:@"Profile"] valueForKey:@"first_name"]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to parse a Json file like this, generated by Exiftool: [{
I have parse json file which contain more than hundred location name, there latitude
I am using the Javascript serializer to parse a JSON file. Its runs fine
After I press a button, Android parse a JSON file and pick the info
I have a huge JSON file to parse in my Android app. I suppose
I have a JSON file and want to parse value of variable second value
I am trying to parse a rather large json file, and I am beginning
I'm creating an android application which should parse a Json from a file or
I'm having a problem parsing a JSON file in AS3. Im trying to parse
The App that I'm working on requires to parse a very big Json file

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.