Questions tagged [sbjson]

Related to the SBJson Objective-C JSON parser/generator.

SBJson's homepage is at:

Source code available at:

Tests, containing useful examples:

Example app:

182 questions
1
vote
1 answer

NSCFString 0x2749a0 valueForUndefinedKey this class is not key value coding-compliant for the key data

my json : { "name": "notification", "args": [ "{\"data\": …
pengwang
  • 19,536
  • 34
  • 119
  • 168
1
vote
1 answer

iOS SBJsonWriter returns null

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…
user1199624
1
vote
2 answers

Can't parse JSON from data in connectionDidFinishLoading – Maybe it's too much data?

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…
Brian Weinreich
  • 7,692
  • 8
  • 35
  • 59
1
vote
2 answers

SBJSON parser doesn't work on second try

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 { …
user1248747
  • 31
  • 1
  • 4
1
vote
1 answer

SBJson Parsing without a key

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, …
ruelluna
  • 787
  • 1
  • 11
  • 30
1
vote
2 answers

adding SBJson framwork + ShareKit/ShareKit to the same XCode Project

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…
ahmad
  • 1,212
  • 1
  • 14
  • 28
1
vote
1 answer

passing JSON data with hebrew values problems (UTF8?)

i have this method - NSArray *objects = [NSArray arrayWithObjects:appDelegate.UserID,itemName.text,@"1",@"1",itemDegem.text,itemDescription.text, nil]; NSArray *keys = [NSArray…
Amir Foghel
  • 853
  • 1
  • 12
  • 28
0
votes
1 answer

Complex Json Data and NSMutableDictionary parsing issue

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 =…
Shimon Wiener
  • 1,142
  • 4
  • 18
  • 39
0
votes
2 answers

Parsing JSON string to a NSMutableArray

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!
user1053839
  • 390
  • 1
  • 3
  • 10
0
votes
1 answer

NSURLConnection and SBJSon in AppDelegate

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…
ruelluna
  • 787
  • 1
  • 11
  • 30
0
votes
3 answers

Memory leak when parse JSON string using SBJSON

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…
AAV
  • 3,785
  • 8
  • 32
  • 59
0
votes
2 answers

How to parse /Date(xxx+0000)/ in SBJSON

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…
Michał Zygar
  • 4,052
  • 1
  • 23
  • 36
0
votes
2 answers

JSON parsing Error getting brautaset.JSON error

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…
bakwarte
  • 317
  • 1
  • 2
  • 10
0
votes
1 answer

JSON data identical yet program fails?

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…
Groppe
  • 3,819
  • 12
  • 44
  • 68
0
votes
1 answer

SBJSON v2.3 surrogate chars parsing issue

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…