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

iphone with sbjson framework cant parse json array

Im facing some problem with json and objective c. Atm i am using sbJson framework (i can change framework if some tell me do it!) and im not being able to parse a json array. this is the json i want to parse, {"JsonEventosResult": [ …
pata
  • 959
  • 2
  • 18
  • 35
0
votes
1 answer

How to use SBJSON parse with using Content-Type and Method(POST,GET) in iPhone?

Already i have worked on SBJSON parsing, that was working very fine. Now, i am working in SBJSON parsing. The problem is the parsing result is returning null(In NSDictionary). I have tested the url in Firefox POST tool, it returned result with the…
Yuvaraj.M
  • 9,741
  • 16
  • 71
  • 100
0
votes
1 answer

SBJSON parsing issue with Twitter's GET trends/:woeid

I am trying to understand an issue I am having when using sbjson to parse the following json returned by a call to Twitter's GET trends/:woeid I am using the following URL: @"http://api.twitter.com/1/trends/1.json" and I get the following response:…
Seamus
  • 3,191
  • 3
  • 22
  • 20
0
votes
1 answer

Parsing JSON - Issue with SBJsonParser

I'm currently experiencing a weird issue when it comes to parsing some JSON when using the SBJsonParser. Now, the JSON that I am parsing is as follows. [ { "Company":{ "id":"1", "company_name":null }, …
Sebastien Peek
  • 2,528
  • 2
  • 23
  • 32
0
votes
1 answer

Strange memory leak when calling SBJSON

I've been thoroughly testing my app using the Leaks tool in Instruments, and occasionally a leak comes up when using SBJSON. Having looked over the net it appears that SBJSON tends not to leak by itself, so it must be the way I am calling it. Here's…
benwad
  • 6,414
  • 10
  • 59
  • 93
0
votes
1 answer

SBJSon dont like [ ] chars in Json string

I noticed SBJson failed to decode this json string: [{"JNAME":"VERSION","DATE": "20111012","TIME": "145020"}] If I remove the [ ] the string is successuffly decoded and return a NSDictionnary my code: not working (return nil): SBJsonParser *parser…
Nico AD
  • 1,657
  • 4
  • 31
  • 51
0
votes
1 answer

Can I minimize the number of objects used in this SBjson code?

The response I receive from the server is formatted as such: { "Data":{ "Key": "Value" ... }, "Key": "Value" ... } However, I am only interested in the elements under "Data". Here is the code I'm currently…
toddfraser
  • 35
  • 6
0
votes
1 answer

SBJSONParser on large integer

I'm using json-framework to parse JSON data in an iPhone project. But there's a large number in the json data, such as 10432159274, it will make NSNumber overflow. In the SBJsonParser.h, the doc says Numbers in JSON will be converted to NSNumber or…
Eric Wong
  • 524
  • 9
  • 21
0
votes
2 answers

SBJsonParser JSONValue failed. Error is: Illegal start of token

I am trying to get an exchange rate from the iGoogle Calculator. I have successfully run a NSURLConnection and built up the result in an NSData via: - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { // Add the…
Mark Stratmann
  • 1,612
  • 14
  • 21
0
votes
1 answer

Another iPhone Memory leak issue

I have memory leak on jsonParser. Here is my code - (id) objectWithUrl:(NSURL *)url { SBJsonParser *jsonParser = [SBJsonParser new]; NSString *jsonString = [self stringWithUrl:url]; // Parse the JSON into an Object return [jsonParser…
HardCode
  • 99
  • 2
  • 8
0
votes
2 answers

Parse serializeJSON file format in iphone

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

Help with SBJSON + Facebook SDK Clash

I was using the SBJSON files from this JSON tutorial and then I tried using the Facebook iOS SDK. The Facebook SDK happens to have the same SBJSON files.. but apparently is a lot different. I cannot use both folder groups because I get "duplication…
Adam Storr
  • 1,438
  • 2
  • 21
  • 46
0
votes
1 answer

SBJson API iPhone

I am trying to get the JSON data I will be getting back from a forward geocoding web service API. The respond format is as follow. [ {"total":63},{ "t":"1", "lable":"Gek Poh Shopping Centre", "address":"762 Jurong West…
Gavin
  • 2,784
  • 6
  • 41
  • 78
0
votes
1 answer

SBJson Parser without memory leaks, iphone

i used SBJson parser in my project but getting some memory leaks, all those are SBJson parser. can any one tell me what is version of SBJson parser do i need to use to avoid the leaks. Thanks in advance
Steve Gear
  • 757
  • 2
  • 16
  • 44
0
votes
3 answers

how to parse a JSON string in iphone Objective - C?

Hi i am trying to parse a JSON string in iphone and so far i have been able to get JSON VALUE correctly but after that i am geting an error: -[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x62242e0 2011-08-16 16:11:58.792…
IphoneBites
  • 157
  • 1
  • 7
  • 17