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

SBJson Stream Parser

I'm working in Xcode 4.3.2 + building for an app in iOS 5. I've decided to use SBJson to parse streams of data from our server. I've verified that I'm receiving a valid JSON response from the server. My question concerns the design behind the…
Henry
  • 926
  • 2
  • 12
  • 27
0
votes
1 answer

JSONValue failed. Error is: Illegal start of token [<]

i am new to JSON Parsing. I am using SBJson 3.1 and trying to fetch data in response to which I got above error. I have searched alot on Google, but no one has ever asked or explained what actually error Illegal Start of Token means. So please can…
NightFury
  • 13,436
  • 6
  • 71
  • 120
0
votes
2 answers

Objective-C JSON Data Quotation marks

Good afternoon, I am passing a JSON string to an iOS app and an Android app from a webservice. Business rules dictate that this JSON string CAN contain data with a quotation mark. {"message": [{"MessageID": "22", "CompanyID": "0897001",…
AaronBastian
  • 307
  • 3
  • 13
0
votes
1 answer

SBJson and Facebook iOS SDK error "no visible @interface for 'NSData' declares the selector 'JSONValue'"

I get an error saying: "no visible @interface for 'NSData' declares the selector 'JSONValue'" ?? It happens when I have a data stream (NSDAta) NSDictionary * dict = [data JSONValue]; I have only the SBJson files that came with the facebook SDK. Can…
jimbob
  • 3,288
  • 11
  • 45
  • 70
0
votes
1 answer

Using SBJson with facebook sdk static library

At the moment when I try to have the SBJson library alongside the facebook-ios-sdk I get 'duplicate interface definition for class 'SBJsonParser'' come up. So I have created a static facebook-ios-sdk library and then I have also got my standard…
jimbob
  • 3,288
  • 11
  • 45
  • 70
0
votes
1 answer

parse json file in objective-c

i have this json link Json_link how i can get the (17 : 00) and (Amberg) and (Aubstadt) values. and thanks in advance.
adellam
  • 811
  • 2
  • 9
  • 16
0
votes
1 answer

SBJSON issues with key value NSDictionary

I have got JSON string as below: {"status": "ok", "secret": "d2d388eb3a24aaacb365597f69a2bf97", "client": "100006", "expires": "1345721042"} For parse JSON object I'm using SBJSON library. This is my code that I have used for retrieve data from…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
0
votes
1 answer

UItbaleview Cell json contents not displayed in iOS

I created an app which will fetch info from web service.So far i got it by displaying the contents using NSLog but when i tried to load it in UITableViewCell its not displayed.Here is my code for that #import "TableViewController.h" #import…
Vishnu
  • 2,243
  • 2
  • 21
  • 44
0
votes
2 answers

ios unrecognized selector

Possible Duplicate: -[__NSCFDictionary JSONRepresentation]: unrecognized selector sent to instance I use SBJson ( http://stig.github.com/json-framework/ ) in two of my project. Therefore I downloaded the code and copied it into my first project…
toom
  • 12,864
  • 27
  • 89
  • 128
0
votes
2 answers

How to Parse certain arrays in SBJson

Hi I have this code here - (void)viewDidLoad { [super viewDidLoad]; jsonURL = [NSURL URLWithString:@"http://oo.mu/json.php"]; jsonData = [[NSString alloc] initWithContentsOfURL:jsonURL usedEncoding:nil error:nil]; self.jsonArray =…
0
votes
2 answers

SBJson parsing help iphone

im currently trying to parse some json data on the iphone. I have been trawling the web for examples, but none seem to suit my purpose, i am using SBJson. What I want is to be able to get an NSArray of Titles, Artisits, Status, etc. so that I can…
ddoor
  • 5,819
  • 9
  • 34
  • 41
0
votes
1 answer

Parsing JSON from PHP by SBJson

Now I'm trying to POST jpeg files to MySQL via PHP and GET from MySQL to iOS. In GET method I encode jpeg(as NSData) and some related data(ex. caption, timestamp) to JSON on PHP script using json_encode(). …
nakazy
  • 31
  • 4
0
votes
1 answer

SBJSON link error

I am using googles GdataStatic lib for integrating youtube service in my project. I am also using a JSON library for parsing JSON file. What my problem is when I building project it shows error like duplicate symbol _OBJC_METACLASS_$_SBJsonParser…
rakeshNS
  • 4,227
  • 4
  • 28
  • 42
0
votes
1 answer

SBJSON encode Object who contain an array of another Object

i've a little json encode problem : i need to encode an object format JSON with SBJSON before send it to a php server At the moment this sample code work : NSArray *arrayData = [NSArray arrayWithObjects: user.id == nil ?…
Damien Locque
  • 1,810
  • 2
  • 20
  • 42
0
votes
1 answer

JSON Errors + Objective C

I have found a few ways to parse JSON in Objective-C: SBJSON NSJSONSerialization Both of these methods work great, however my only problem is that when an error occurs, I would like more details than the error message. Specifically, I would like…
Kyle
  • 17,317
  • 32
  • 140
  • 246