I downloaded the Facebook SDK 3.0.8, and I am using it as per the instructions (dragging the framework and resource bundles).
I attempt to authenticate, and it works fine. Then I do:
FBRequest *me = [FBRequest requestForMe];
[me…
In the current project, I used SBJSON everywhere and got it working fine with the previous version of iOS Facebook SDK since SBJSON was included in Facebook SDK.
I just upgraded to iOS Facebook SDK version 3.0 and having problem with SBJSON.
The…
I'm relatively new to Objective-C, and followed a tutorial on an introduction to MapKit (located here). I've been trying to debug an issue with a JSON string being passed to an NSDictionary. I'm getting the following error:
2012-08-13 11:18:30.370…
I'm trying to serialize an objc object with Json to send it to a server.
That same server sends the following on GET for this object type:
{
"TypeProperties":[
{"Key":"prop 0","Value":"blah 0"},
{"Key":"prop 1","Value":"blah 1"},
…
I am making an app that lets the user draw on the screen in different colors and brush sizes. I am storing the info about each drawn path in a JSON file once it has been drawn to keep it out of memory. Right now I have it parsing all existing…
I am using the following JSON: http://www.kb.dk/tekst/mobil/aabningstider_en.json
When I try to parse it by the key "location" as such:
// get response in the form of a utf-8 encoded json string
NSString *jsonString = [[[NSString alloc]…
I've used leaks to locate a memory leak that is related to SBJsonParser tho I don't understand why I'm getting it? I was hoping someone might be able to shed some insight.
Leaks reports that the leak is coming from a method called objectWithURL.…
It should be so simple but I cannot get it work.
Json response is
([{"id":"1", "x":"1", "y":"2"},{"id":2, "x":"2", "y":"4"}])
NSString *response = [request responseString];
//response is ([{"id":"1", "x":"1", "y":"2"},{"id":2, "x":"2",…
i'm trying to follow this tutorial here http://ios-blog.co.uk/iphone-development-tutorials/parsing-json-on-ios-with-asihttprequest-and-sbjson/ to do both the ASIHttp and SBJSon tutorial at the same time and all is well until the line
NSMutableArray…
Im sending data to a server from my iPhone app, with this code:
- (void) sendGeneral:(NSString *) general{
self.responseData = [NSMutableData data];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL…
Feeding the json-parser with the this data: http://mapadosradares.com.br/api/get_initial_load yields this error: Token 'start of array' not expected after outer-most array or object
Here is my code:
- (void)connection:(NSURLConnection *)connection…
I am using the SBJSON to convert my NSDictionary to a JSON String in my iOS application.
when my dictionary contains a NSAttributedString or an NSData, the SBJSON fails to generate the string representaiton.
Incase of NSAttributedString, the error…
I'm using SBJson to parse some JSON result from a webservice. The problem is I'm not sure how SBJson handles boolean types. The service returns it as a true or false value; is this handled automatically in SBJson or do I have to detect it myself?