Quick question:
How do I parse a NSString using SBJSON4
The string is an UTF-8 encoded JSON string from a web REST api.
I need an NSDIctionary with the parsed data. The string is guaranteed to be a complete JSON document.
@interface…
I've founded this error "no visible @interface for 'SBJson4Parser' declares the selector 'objectWithString:error'" when I've done importing "SBJson4.h" in my code. I don't know why I've founed this error.
SBJson4Parser *parser = [[SBJson4Parser…
I am developing an iOS app that should pull data from a web service. Now i have developed a basic structure and layout and implemented it to show static content.
But when i try to load data from an api with the use SBJSON Lib, it gives a lot of…
I am trying to a read JSON file containing contact info objects consisting of NSString types and NSMutableArrays. Currently, I am using NSData to read the whole file and then parsing through it. I have utilised Stig's example as mentioned here:…
I am running into an error using SBJSON parser on a response string returned from a PHP webservice:
NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
NSError *error;
SBJSON *json = [SBJSON…
I am trying to read the following json:
[{"result":"1","msg":"Login Successful.”,”title":"Login","redirect":"index.php","servers":"{\"140\":\"10 minute Email\"}","server”:”xxx.xxx.xxx.xxx”}]
like so:
NSString *responseData = [[NSString…
In my app I have to use two different Augmented Reality SDKs. Wikitude and another one. The problem is that I get duplicate symbolserrors when I want to build the app. After some research I found out that both frameworks contain the SBJson library.…
Developing full C.R.U.D. app on a remote database. My app is working correctly as of publishing this question. However I would like to advance it. I am a newbie to IOS development. As you can see from my code I am getting the valueForKey name and…
Alrighty. I have a button (below) where I take some info from an app and I post it to the users FB feed.
It almost never works the first time. Them, it will usually work pretty well after that. What happens is, when I press the button it tells me…
My current issue is I have successfully fetched data from a web service using SBJSON as well as parsed the data into a Class with several variables.
Now, my main view controller is supposed to be accessing those variables within the Class that is…
Currently, I have within my iPhone app a URL with which contains a JSON object that I must parse.
I am able to fetch the JSON object, convert the object to an NSString, now the issue is parsing the object/NSString object.
I am currently using…
Here's my JSON. I want to parse so that the first object in my JSON comes first when I push it into my array. But now it seems to parse random? Sometimes it's in this order: 1,5,3,2,4 sometimes it's 2,3,1,5,4. Does anyone know what I can do to get…
I am trying to parse some json data with SBJson to show the current temperature. The example code from this tutorial works perfect: Tutorial: Fetch and parse JSON
When I change the code to my json feed i get a null. I am kind of new to JSON but…
JSON Response like - {"response":{"Success":"Y","items":[{"userid":"255"}]}}
I tried to parse like this:
-(void)connectionDidFinishLoading:(NSURLConnection *)connection
{
NSString *jsonStr = [[NSString alloc] initWithData:mutaebleData…
I recognize that there are a lot of SO topics on this already but all of them seem quite dated.
IE: SBJSON parsing issue with Twitter's GET trends/:woeid and JSONValue ARC issue
However, my JSON response is a little different.
This is the raw…