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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:38:50+00:00 2026-05-22T18:38:50+00:00

OK, I am quite new to this Objective-C and JSON thing, so please bare

  • 0

OK, I am quite new to this Objective-C and JSON thing, so please bare with my questions. I am using Stig Json Framework and ASIHTTPRequest.

My overall objective is to send JSON data (containing login credential) to a PHP webservice and expecting a return once the PHP process the data. I need an authorize key from the return and also specific user data tied to the login credential.

Now, I can send the JSON data via POST all right, consume the data via PHP all right. But I just don’t understand the logic of the return data, as I said earlier. I only know that ASIHTTPRequest do return the response string via anything echo’ed from the PHP, but is this the correct way to get the return data I want?

Or, do I encode it back to JSON? How?

I think another viable solution is to write a webservice that receive parameters via URL and return JSON data. For example, how do I write http://search.twitter.com/search.json?q=@<name>?

  • 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-22T18:38:51+00:00Added an answer on May 22, 2026 at 6:38 pm

    The data is returned as a JSON string and you need to convert it to Objective-C object using the “JSONValue” method before working with the returned data.

    For example:

    NSDictionary *results = [jsonString JSONValue];
    

    Now you can work with the returned data as an NSDictionary.

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

Sidebar

Related Questions

Quite new to this mocking thing, I have a couple of questions. Correct me
I am using treegrid with jqGrid and am quite new to this plugin. I
I'm quite new to objective-j and the framework so I was attempting to drill
first of all please let me say that I am quite new to objective
I am quite new to objective C , I am using XCode 4.2 and
I'm not quite sure where to go with this. The overall objective is to
I'm quite new to this (understanding the WP Guts), and I wanted to understand
I am quite new with this MVC in ASP.NET. If I have a page
I'm quite new to this, but i cannot figure out the problem. In twitter
Yo. I'm really quite new to this whole JavaScript business, not to mention AJAX,

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.