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
0
votes
1 answer

Parsing JSON showing nil value

SBJsonParser *parser = [[SBJsonParser alloc] init]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL…
Ali
0
votes
2 answers

Parsing JSON showing nil value

I am parsing the data it gets all the data in dictionary but when i check value using NSLog it showa nil value SBJsonParser *parser = [[SBJsonParser alloc] init]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL…
Ali
  • 1,951
  • 2
  • 14
  • 14
0
votes
3 answers

JSON Feed for Twitter on iphone

I am trying to work with JSON Feed for iphone using SBJSON Framework. I did try initially with an example and it works fine. But when I did the change with my URL JSON, it couldnt find the correct key. I am not sure if I am correct since I am new in…
lifemoveson
  • 1,661
  • 8
  • 28
  • 55
0
votes
1 answer

SBJson and NSData

I'm getting data from quizlet.com and it works OK for simple code: -(void) grabbQuizletWithUrl:(NSURL*)requstURL { NSString *dataString = [NSString stringWithContentsOfURL:requestURL encoding:NSUTF8StringEncoding error:&error]; …
Michael
  • 1,238
  • 2
  • 15
  • 26
0
votes
2 answers

Duplicate symbols, GTMOAuth2 and Facebook SDK for IOS both using SBJSON

I have an app in which I have implemented facebook login. I copied the sources from the facebook sdk directly into my project. Now I need to add google login. This time I have added GTMOAuth2 as a static library. (I also have the source for this too…
gyozo kudor
  • 6,284
  • 10
  • 53
  • 80
0
votes
2 answers

Objective-c SBJSONWriter convert array of dictionaries to JSON

I'm having some trouble with SBJsonWriter at the moment. I need to send a request that contains a json object of name/value pairs. e.g. [{%22uid%22:1,%22version%22:1}] I can't figure out how to do this in Obj-C with the SBJson Writer framework. For…
jim
  • 8,670
  • 15
  • 78
  • 149
0
votes
1 answer

Getting error when trying to set value/key pairs with SBJsonWriter

Getting the following error when trying to set value/key pairs: 2011-06-21 16:21:16.727 agent[94408:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class…
xil3
  • 16,305
  • 8
  • 63
  • 97
0
votes
1 answer

Old version of sbjson throw exception in iOS 10

My problem is about coding in old version of sbjson, there are some code which caused exception in iOS 10.3.3 compiled in XCode 8.3.3. Update to new version of sbjson might work but since i am maintaining the iOS app, i don't want to change too…
ProgrammingBaKa
  • 363
  • 2
  • 19
0
votes
1 answer

iOS App crash: "Selector name found in current argument registers: appendDictionary:into:"

My application is crashing sometimes with the following reason. Its coming from SBJSON library. Application Specific Information: Selector name found in current argument registers: appendDictionary:into: Thread 0 Crashed: 0 MyApp …
arango_86
  • 4,236
  • 4
  • 40
  • 46
0
votes
1 answer

Parsing Complex JSON (Navigating the hierarchy of objects it produces) in Objective C

I am developing an app based on school menus and dishes where I am stuck is in parsing complex/nested json Sample Json URL : Json Data So far I have just done this as mentioned in below code using SBJSON: dispatch_async(dispatch_get_main_queue(),^…
Maddy Barakz
  • 11
  • 1
  • 7
0
votes
1 answer

Horizontally and Vertically scrollable table view with data from json

I want to create a table view which is scrollable both horizontally and vertically. I can do this by taking values myself. But I want to take the values from json. I am using model class and my json values are like this: [ { "cid": 109, …
Itaws
  • 330
  • 1
  • 22
0
votes
4 answers

Incorrectly parse json into NSDictionary

I am trying store text fields data into a NSDictionary from json. I have used SBJson for this. { "fields":[ { "textFields":[ { "text":"Congratulations", "textSize":"12" …
Susitha
  • 3,339
  • 5
  • 27
  • 41
0
votes
2 answers

How to parse NSJsonDictionary objects in json file using SBJson4StreamParser

I'm new to iOS, I was able to write the NSDictionary objects into file like below example { "msg":"Hello", "from":"X", "date":"12/1/2014" } { "msg":"new to IOS", "from":"home", "date":"23/2/2014" } I know it is an array of objects I need to be…
virtplay
  • 550
  • 7
  • 18
0
votes
1 answer

SBJson and swift

Does anyone know how to use SBJson library in swift? I've this code in Objective-C NSString *responseString = [request responseString]; NSDictionary *responseDict = [responseString JSONValue]; Trying with var responseString =…
0
votes
1 answer

using Facebook Graph API how can i access friends names

I am working on a project which requires to display friendlist of my facebook account. When I am assigning me/friends it gives me the number of count of the friends I have in my account, like, { "friends": { "data": [ ], …
Snehal
  • 7
  • 4