Questions tagged [jsonkit]

A Very High Performance Objective-C JSON Library, licensed under the terms of the BSD License

87 questions
3
votes
2 answers

Compiler Error with LLVM 5.1 "Deprecated isa"

I am getting compiler errors with libJSONKit and in JSONKit.m. The errors are thrown with this: "Assignment to Objective-C's isa is deprecated in favor of object_setClass()". There is also a secondary error: "Direct access to Objective-C's…
Michael Lorenzo
  • 628
  • 10
  • 20
3
votes
2 answers

JSONKit failed to parse simple JSON from php?

I am using JSONKit in my iOS app. It loads an extremely simple JSON served by my php file: http://staging.comwerks.net/terrence/ecitizen/article.php somehow, it is producing an error: "Unexpected token, wanted '{', '}', '[', ']', ',', ':', 'true',…
mkto
  • 4,584
  • 5
  • 41
  • 65
2
votes
3 answers

How do you get mutable dictionaries from AFNetworking and AFJSONRequestOperation?

I'm using JSONKit with AFNetworking's AFHTTPClient (with AFJSONRequestOperation) and I can't seem to figure out how one might trigger the use of the mutableObjectFrom... methods of JSONKit rather than the normal parser methods which return (or…
2
votes
3 answers

JSONKit unrecognized selector while serializing

I am trying to use the JSONKit library and have included the source files in my project. I have included the JSONKit.h header so that the included category gives NSDictionary objects the JSONData and JSONString selectors. NSMutableDictionary* root…
Sridatta Thatipamala
  • 2,182
  • 4
  • 17
  • 18
2
votes
3 answers

Serializing complex NSObject to JSON pattern

I have a series of NSObject's I would like to serialize to JSON and post to a service. The final object consists of several levels of these NSObject subclasses nested within each other. Each one of these objects follows a protocol with a method…
Oh Danny Boy
  • 4,857
  • 8
  • 56
  • 88
2
votes
3 answers

JSONKit for iphone app?

Will apple choose to not allow an app to go to the app store if we use JSONKit to parse JSON's from our php document? I would like to use JSONSerializable but that is for ios5 and I am not going to alienate ios4 members on 3gs by doing that.
Rob
  • 426
  • 8
  • 23
2
votes
1 answer

JSONObject Java equivalent for Objective C

I'm working on an API for objective C which has an equivalent JAVA version. They used the JSON.org elements to define the JSON parsing in JAVA. import org.json.JSONObject; public class TestCodeRequest{ private HashMap
Siddharthan Asokan
  • 4,321
  • 11
  • 44
  • 80
2
votes
2 answers

JSONKit changing float values on decoding JSON object from webservice in iphone

Float values are getting changed after parsing with JSONKit. The problem occurs after calling objectFromJSONString or mutableObjectFromJSONString. The JSON response is fine before this method is triggered in JSONKit.m: static id…
Warrior
  • 39,156
  • 44
  • 139
  • 214
2
votes
2 answers

Performance of object_setClass() instead of assigning isa pointer

I noticed with with the latest update to XCode (4.6), I was given a warning about a couple of lines in JSONKit.m. Specifically, lines that set the class of an object: dictionary->isa = _JKDictionaryClass; These are marked as deprecated with a note…
Mike D
  • 4,938
  • 6
  • 43
  • 99
2
votes
1 answer

-[NSURL _CFURLRequest]: unrecognized selector sent to instance

i am using JSONKit in my program to parse google places api but my app crashes with the following error -[NSURL _CFURLRequest]: unrecognized selector sent to instance NSString* URL = [NSString…
sin
  • 726
  • 7
  • 16
1
vote
1 answer

JSONKit with Key-Value Coding and BOOLs

I'm attempting to serialize various objects by using Key-Value Coding to convert them to an NSDictionary, then JSONKit to serialize the NSDictionary to an NSString/NSData. I'm running into problems converting BOOL properties. The KVC guidelines…
jagill
  • 692
  • 4
  • 12
1
vote
1 answer

Using AFNetworking or JSONKit to talk to a Node.js express webserver

If all I wanted to do with a webserver was to request data and send commands from an iPhone app, all I'd need for that is AFJSONRequestOperation, correct? Why are some people also using JSONKit with AFNetworking? If I use JSONKit then do I still…
neuromancer
  • 53,769
  • 78
  • 166
  • 223
1
vote
1 answer

ShareKit Compile Issue - JSONKit not found

I have followed the following instructions in order to setup and configure ShareKit: https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit When trying to compile my app, I now get the following error: clang: error: no such file or directory:…
joshim5
  • 2,292
  • 4
  • 28
  • 40
1
vote
5 answers

JSONKit: changing and serializing JSON attribute's value

I am using JSONKit to parse JSON string into NSDictionary: NSDictionary *deserializedData = [jsonString objectFromJSONString]; My question is: how can I change the dictionary values and get a changed JSON String? I've tried to change the dictionary…
jcdmb
  • 3,016
  • 5
  • 38
  • 53
1
vote
1 answer

How to parse the data in JSONKit with following format

I have following data and i want to print the list of items with following structure. Let me know how can i do that. I can't get the data using the following syntax. /* Data to Row Json from URL*/ NSString *MyRowJson = [NSString…
Jigar Pandya
  • 6,004
  • 2
  • 27
  • 45