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
3 answers

parsing json response in my objective-c program

im using SBJSON to parse my response, bus somehow i cant get my data out. how should i parse this reponed ? {"StatusCode":0,"Message":"email already…
Amir Foghel
  • 853
  • 1
  • 12
  • 28
0
votes
1 answer

A duplicate JSON file in iOS app is preventing the app from building

I'm having a duplicate JSON file problem. I have google places SBJSON files and also Facebook JSON files. I see that the typical solution is to remove one of the JSON libraries. When I do this I get many more errors. The Google and FB JSON libraries…
hanumanDev
  • 6,592
  • 11
  • 82
  • 146
0
votes
1 answer

SBJson deserialization issues

Hi I'm having trouble with JSON deserialization. I am using SBJson, the data is returned from a .net webservice. This is the returned JSON (shortened) { "id": "1", "result": [ { "questionID": 21, "question":…
user551353
  • 79
  • 1
  • 6
0
votes
1 answer

iOS - Nested NSDictionaries to NSArray

My Json response is [{"id":"1", "x":"1", "y":"2"},{"id":2, "x":"2", "y":"4"}] And I did NSString *response = [request responseString]; SBJSON *parser = [[SBJSON alloc] init]; NSArray *jsonObject = [parser objectWithString:response…
MomentH
  • 1,979
  • 5
  • 22
  • 24
-1
votes
3 answers

Is there a way to parse serializeJSON file in objective C

I am trying to parse JSON file generated from ColdFusion server in SerializeJSON format. Is there any specific way to parse the serializeJSON file. It is different than normal Twitter Feed JSON file. How to parse the JSON file in such a format ? I…
lifemoveson
  • 1,661
  • 8
  • 28
  • 55
-1
votes
2 answers

Display records of next page in json in uitableview on scrolling the tableView when I reach the last record

I am trying to make an application that uses SBJSON and ASIHTTPRequest containing 273 pages (50 records in each page)in json. When I scroll the tableView I want to get next 50 records when I reach the last record.Currently I am getting only the…
Itaws
  • 330
  • 1
  • 22
-1
votes
1 answer

Parsing JsonArray using SBJson Framework in Xcode 5

I am getting json data from url as below: {"message":"success","vendors":[{"businessname":"webixion","vendorid":"67","vendor_city":"kakinda"}]} How to retrieve all 'message',businessname','vendorid','vendor_id' values I am using SBJson Framework…
lalith222
  • 309
  • 5
  • 16
-1
votes
1 answer

ASIHTTPRequest + SBJSon iphone

I am working with an application where I have to request a url and I get the response accordingly I am using ASIHTTPRequest to request the URL here is my request -(void)getTips { if ([CommonFunctions networkConnected]) { …
iDeveloper
  • 498
  • 4
  • 9
-1
votes
2 answers

Using SBJson in a non-ARC project

I am developing an IOS application, using the SBJson library. I don’t use ARC on my project, and previous SBJson releases didn't use it, either. But now SBJson uses ARC and I have to upgrade to the latest SBJson release. I viewed the SBJson classes…
hiwordls
  • 781
  • 7
  • 17
  • 35
-1
votes
1 answer

exception 'NSInvalidArgumentException':-[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x752c670

I use sbjson to parse json, this is the Json I'm trying to parse : {"R":"0","S":"","T":"","M":[{"C00":"2013-08-16 17:35:03"}]} and this is my code: NSString *response = [self post:@"9903" content:payload state:@""]; NSDictionary *dict = [response…
lgw150
  • 170
  • 1
  • 3
  • 13
-1
votes
2 answers

Error:JSON unrecognized leading character

I am implementing SBJSON to fetch the data from web service. My code in "ConnectionDidFinishLoading" is as follows: NSString *responseString = [[NSString alloc] initWithData:responseData encoding: NSUTF8StringEncoding]; NSLog(@"Response String …
K.P.
  • 324
  • 4
  • 13
-2
votes
1 answer

'NSInvalidArgumentException', reason: '-[SBJsonParser objectWithString:error:]: unrecognized selector sent to instance 0x6695330'

While creating a login view on my iphone app, I ran into this error: 'NSInvalidArgumentException', reason: '-[SBJsonParser objectWithString:error:]: unrecognized selector sent to instance 0x6695330' It's coming from this line: NSDictionary…
Stanwin Siow
  • 437
  • 1
  • 8
  • 21
-2
votes
3 answers

How can I write data from an NSDictionary to a SQLite database?

Possible Duplicate: separating keys and objects from NSMutable dictionary and use the values in insert command of sqlite I have an NSDictionary containing parsed JSON data. How can I push these data to a database so that I can extract them from…
Avi
  • 45
  • 1
  • 7
-2
votes
2 answers

How to plot the markers in google maps from a dictionay in ios?

In my app, I have done JSON parsing and I got the coordinates in the form of a dictionary, I want to use the coordinates angd plot it in the map, I have using this SBJsonParser *jsonParser = [SBJsonParser new]; NSArray *jsonData = (NSArray *)…
chandru
  • 407
  • 1
  • 5
  • 26
-2
votes
1 answer

SBJson - UTF8 characters

I have some data that contains UTF8 characters. If I do following I can able to see characters correctly in console: NSString *responseData = [[NSString alloc] initWithData:urlData …
Olcay Ertaş
  • 5,987
  • 8
  • 76
  • 112
1 2 3
12
13