I'm developing a static library where i need to use the open source SBJson class.
what is the best way to include the SBJson class to my library without needing to include all its header files(.h) when distributing my static library ??
I have an entity class called catObras, and it inherits from the class NSManagedObject. What I want to do is pass it trough a web service (POST) in JSON form. If I sent the object I receive this:
(entity: catObras; id:…
I am working on an app that talk to Rest web service. The JSon parser I am using is SBJson. There is this web service on the server side returns a beanA. This bean contains an beanB. Part of the Json I got from the server side is like this when…
I am trying to include SBJsonlibrary in my project that does not use ARC. Since I cannot include source files, I've followed the steps described: here. However I end up with the same problems described in this SO question.
When I add libsbjson-ios.a…
i have copied SBJson folder into my project and also #import "SBJson.h"
But still i am not getting
NSDictionary *result = [strResult JSONValue];
Even Xcode does not show any option JSONValue;
even if i write JSONValue than it prompt me error
No…
I am working on the app in which I store the file name and file path in NSDictionary. My dictionary like,
Dict Path : {
background = "file://localhost/var/mobile/Applications/6118A03F-345B-42D5-AC19-25F6D9AC4484/Documents/background.caf";
…
I have a problem with inserting data to a cell in tableView. When I searched for the source of error I saw that my webservice is returning null values. So when I call the name to the cell it crashes argumenting that is null. So, cause is a database…
I've tried converting the same NSDictionary object into NSData and then NSString using NSJSONSerialization and SBJsonWriter several times, and sometimes got a different string. even null. It's quite weird and I can't find any reason. =( JSONKit and…
I'm using the AFNetworking Framework for iOS. I've subclassed AFHttpClient and are using it as a singleton, i.e. [TestAFClient sharedClient]
I'm consuming an ASP.NET Web Service API that requires the use of the .ASPXAUTH cookie. First I have to…
I'm trying to parse an NSString that contains JSON data into an NSDictionary using SBJson 3.0.4, but when I do it, I get this error:
"WebKit discarded an uncaught exception in the webView:shouldInsertText:replacingDOMRange:givenAction: delegate: …
I am having a problem with sending special characters on iOS5 through sbjson to a web service. I get the error:
-[NSNull isEqualToString:]: unrecognized selector sent to instance
I have tried to send the json string without special characters,…
I have some xml that is coming back from a web service. I in turn use xslt to turn that xml into json (I am turning someone else's xml service into a json-based service). My service, which is now outputting JSON, is consumed by my iphone app using…
I'm parsing json with SBJson.
I receive an error "-JSONValue failed. Error is: Unescaped control character [0x09]" when parsing my json string, it has unencoded tab. How to replace this tab in my json string to \t? If i remove tab manualy,…
I have an NSMutableArray of custom objects with various information them.
For instance the object might contain:
firstname
lastname
email
I'd like to be able to add these objects to an NSDictionary, so that I can call SBJSON's 'JSONRepresentation'…
I am receiving this JSON string and want to know how to serialize it into a dictionary so that I can parse it into a managed object.
I have looked at a few ways (named in the title), and can't seem to find the simplest, quickest alternative. I would…