I´m using the SBJson framework the first time, and I´ve got a big problem, the following code always returns null. The NSDictionary is correctly filled (I printed every value out!).
NSDictionary *nsDictionary = [NSDictionary…
I'm sending out a request to an external API and parsing a response with the SBJson parser. However, I suspect the response is so long, it is somehow getting jumbled.
In my mainviewcontroller.h file I set NSMutableData *receivedData; so that I…
When I call the SBJsonParser the first time, it's working fine but on the second try, the result is always null. The data format is exactly the same as the first.
Here is the code:
-(void)connectionDidFinishLoading:(NSURLConnection *)connection {
…
I have this json string by getting a response from using singleton client(RestKit).
[
{
"created_at":"Tue Apr 24 19:25:14 +0000 2012",
"id":132456,
},
{
"created_at":"Tue Apr 24 19:25:14 +0000 2012",
"id":13456,
…
I want to include SBJson and Sharekint libraries in my Xcode Project the problem is sharekit already contains SBJson but with different methods .. the result is that i ended up with duplicate files containing different code and hence i receive…
i have this method -
NSArray *objects = [NSArray arrayWithObjects:appDelegate.UserID,itemName.text,@"1",@"1",itemDegem.text,itemDescription.text, nil];
NSArray *keys = [NSArray…
Hi I'm using SBJson for moving Json data in and out of NSMutableDictionar, Im Building the main NSMutableDictionary from few others NSMutableDictionary like this
- (NSMutableDictionary *) getGeneral{
NSMutableDictionary *pType =…
This is my string:
[{"id":"1","nome":"Adriatik"},{"id":"2","nome":"Ard"},{"id":"3","nome":"Albana"},{"id":"4","nome":"Adriana"}]
I would like to parse all 'name' of the JSON string into a NSMutableArray.
Sorry for my english!
I'm in xCode 4.2 using ARC and Storyboard (iOS 5). I suppose to put Tweets to my TableViewController. As I placed my NSURLConnection, everything goes fine and I have the response already in tweets(NSArray) in the delegate. The problem is it doesn't…
I am using following code to parse JSON and getting memory leak (100%) on line number 2. I don't know what is the problem, can someone help me ?
NSString *response = [request responseString];
NSMutableDictionary *responseJSON = [response…
I am trying to parse JSON with date produced by the .NET service to NSDate object
{
"Dashboard": {
"Date": "/Date(1326063600000+0000)/"
}
}
What is the approach of converting such formatted date using SBJSON? I extracted the value to…
I am making a request to a server for some results that should be returned in JSON format.
When I print out the requested string it shows correct the right output. However when I try to parse the result string i get the error:
Error…
I have an iOS app which gets some JSON from a server (in the form of NSData). I use the SBJson framework's parser to convert that to an NSDictionary object, like so:
SBJsonParser *parser = [[SBJsonParser alloc] init];
NSDictionary *content = [parser…
I noticed a bug in parsing surrogate chars in SBJSON version 2.3. The issue
for me is that iOS 5 emoji chars aren't parsed correctly.
For some reasons I cannot update at this time to version 3.0 of SBJSON. Any
ideas of how to solve the issue?
Any…