Thank you so much. I am a Java Developer who creates a lot of RESTful services for various companies and I have been looking to develop some prototypes for consuming these services on the iPhone and iPad and till this I had to do SAX parsing which was way too heavy. I was having some trouble getting started with the SBJSON libraries and this did the trick. Well done and many thanks!
@hackthatmac I do have experience with PHP, that is why I was using it within this tutorial. Also, you could check out some of my very old tutorials that are PHP-specific. Since you don't know how to use the appropriate "it's" for "it is", does that mean that you have no experience in English???
@arf26 I have the same problem... Since 4 days im trying see in the table of Iphone the PHP Array and I couldn´t do it yet... Few Information about this...
Thanks for the tutorial... Which SBJson version did you use? I downloaded a couple different versions but non of them would take SBJSON in: SBJSON *parser = [[SBJSON alloc] init];
error: 'SBJSON' undeclared (first use in this function)
@Tusharchutani I'm not sure what framework version the tutorial uses, but when I did this with version 2.3.2 I used SBJsonParser for my parser object and it worked beautifully. Hope that helps someone. The answers are always in the header files :-)
great tutorial, I am interested in using the JSON data for 3 various UILabels in a IUViewController rather then a UITableView
any idea where to start ?? I know the basic connection would need to be made to deserialize the information, however trying to print the dict object for key @"" is not working
however I can NSLOG the data retreived from the NSURL and it loads fine
any idea why each indiviual part will not go on a UILable ?? or how to do this ?
I am not getting the list......all blank. Is there a specific set of JSON files for this app? Or is there a setting in the JSON files that needs to be modified?
Spent all day trying to get JSON playing nice with tableview and never succeeded until I found your video - thanks! Made it all seem so simple! I need to pull in a multi-dimensional array - how would I go about pulling this in, then using the 'title' field to populate the cell? Thanks again, agazad
@agazad You would be able to parse the multi-dimensional JSON array just as it is shown in this tutorial, so something like this NSArray *myArray = (NSArray *)[parser objectWithString:myString error:@selector(myErrorCallback)];
Then, NSArray *nextArray = [myArray objectAtIndex:0]; would grab an array within the "myArray" variable.
So, it does not matter how many dimensions there are to the array, you can continue to grab the separate arrays within each array as you would with any other array.
I would like to link rather than copy the json class files into my project.
davepamn 2 weeks ago
I can see stir-json-framework folder in my download directory. How do I install it to the mac? Do you copy files to a specific directory.
davepamn 2 weeks ago
How do I download and install the Json framework. json-framework Do I press the Clone in Mac button
davepamn 2 weeks ago
Do you have the Xcode files for this including JSON because it does not seem to work. The php json parse works but this doesn't.
svwebguild 2 months ago
Good tutorial. Just what I needed to get going on the framework.
jimmyrosiello 5 months ago
Thanks. Good video. IF you could zoom a little bit in your next videos, it would be nice to see the stuff you are typing.
MrRWF2004 5 months ago
With this tutorial you truly saved my bacon. Thanks!
In the latest version of SBJson, it is as crimsonBen says. Use
#import "SBJson.h"
and
SBJsonParser *parser = [[SBJsonParser alloc] init];
Also if parsing a multidimensional array with keys, you can use
echo json_encode($myArray, JSON_FORCE_OBJECT);
along with NSDictionary instead of NSArray
bt370 6 months ago
Good video, thanks for posting.
markstonefilmmaker 6 months ago
Thank you so much. I am a Java Developer who creates a lot of RESTful services for various companies and I have been looking to develop some prototypes for consuming these services on the iPhone and iPad and till this I had to do SAX parsing which was way too heavy. I was having some trouble getting started with the SBJSON libraries and this did the trick. Well done and many thanks!
rincexwind 8 months ago
@rincexwind Thank you! I'm glad this tutorial was helpful to you!
ConnorAlves 8 months ago
lol its funny because the guy who made the video had NOOOO experience in PHP. "uh the json encode function, uh thats really helpful"
hackthatmac 9 months ago
@hackthatmac I do have experience with PHP, that is why I was using it within this tutorial. Also, you could check out some of my very old tutorials that are PHP-specific. Since you don't know how to use the appropriate "it's" for "it is", does that mean that you have no experience in English???
ConnorAlves 9 months ago 5
Hey folks!! IF SBJSON does not work use "SBJsonParser"
cheers
thx for this nice tut!
crimsonBen 10 months ago 3
Has anyone found a fix for SBJSON?
I get two errors on the line: SBJSON *parser = [[SBJSON alloc] init];
Can somebody assist on this?
Thanks
arf26 10 months ago
@arf26 I have the same problem... Since 4 days im trying see in the table of Iphone the PHP Array and I couldn´t do it yet... Few Information about this...
Patrick181818 9 months ago
@Patrick181818 hey mate, I got Json working... It's from a tutorial. PM me...
arf26 9 months ago
@arf26 OK!!!!!!! =)
Patrick181818 9 months ago
@arf26 Can you show me this please?!??!?!!
Patrick181818 9 months ago
Thanks for the tutorial... Which SBJson version did you use? I downloaded a couple different versions but non of them would take SBJSON in: SBJSON *parser = [[SBJSON alloc] init];
error: 'SBJSON' undeclared (first use in this function)
niewie77 10 months ago
This has been flagged as spam show
how can you create more than one array with JSON
wedklol 11 months ago
Comment removed
czarnick2 1 year ago
Comment removed
czarnick2 1 year ago
Comment removed
Tusharchutani 1 year ago
Comment removed
Tusharchutani 1 year ago
This has been flagged as spam show
@Tusharchutani I'm not sure what framework version the tutorial uses, but when I did this with version 2.3.2 I used SBJsonParser for my parser object and it worked beautifully. Hope that helps someone. The answers are always in the header files :-)
czarnick2 1 year ago
thanks @knitsu ! i'll be sure to check this :)
coikii 1 year ago
great tutorial, I am interested in using the JSON data for 3 various UILabels in a IUViewController rather then a UITableView
any idea where to start ?? I know the basic connection would need to be made to deserialize the information, however trying to print the dict object for key @"" is not working
however I can NSLOG the data retreived from the NSURL and it loads fine
any idea why each indiviual part will not go on a UILable ?? or how to do this ?
knitsu 1 year ago
hi!! great tutorial!! but i cant make it work.
the program isn't detecting SBJSON in rootviewcontroller.m :(
exactly at the line: SBJSON *parser = [[SBJSON alloc] init];
could you help me please?? and merry christmas (almost)
*i added all the JSON files and everything, it's just saying SBJSON undeclared, i feel like the new JSON files changed in some way :(
coikii 1 year ago
@coikii the framework you grabbed is an older version, I had the same troubles not with this tutorial, but one identically the same to it
knitsu 1 year ago
Comment removed
Tusharchutani 1 year ago
Comment removed
coikii 1 year ago
million billion thanks .. very helpful tutorial ..
Abdul3ziiz 1 year ago
I am not getting the list......all blank. Is there a specific set of JSON files for this app? Or is there a setting in the JSON files that needs to be modified?
I need help!
ronbowalker 1 year ago
Thanks for the useful tutorial!
nuclearpsyche 1 year ago
Spent all day trying to get JSON playing nice with tableview and never succeeded until I found your video - thanks! Made it all seem so simple! I need to pull in a multi-dimensional array - how would I go about pulling this in, then using the 'title' field to populate the cell? Thanks again, agazad
agazad 1 year ago
@agazad You would be able to parse the multi-dimensional JSON array just as it is shown in this tutorial, so something like this NSArray *myArray = (NSArray *)[parser objectWithString:myString error:@selector(myErrorCallback)];
Then, NSArray *nextArray = [myArray objectAtIndex:0]; would grab an array within the "myArray" variable.
So, it does not matter how many dimensions there are to the array, you can continue to grab the separate arrays within each array as you would with any other array.
ConnorAlves 1 year ago