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…
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…
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];
…
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…
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…
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…
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…
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 …
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(),^…
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,
…
I am trying store text fields data into a NSDictionary from json. I have used SBJson for this.
{
"fields":[
{
"textFields":[
{
"text":"Congratulations",
"textSize":"12"
…
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…
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 =…
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": [
],
…