JSONKit
Closed this issue · 0 comments
10W8K commented
IOS对JSON数据的处理,大多推荐JSONKit
https://github.com/johnezang/JSONKit
iOS Jsonkit 用法简要说明
http://blog.csdn.net/w237or45/article/details/7827796
不过放到工程里之后显示一串error
- 由于JSONKit没有使用ARC,所以使用时不要忘了在build phases -》compile sources 选择文件后面加-fno-objc-arc参数。
- Xcode升级出现的警告
array->isa = _JKArrayClass; 改成 object_setClass(array, _JKArrayClass);
dictionary->isa = _JKDictionaryClass; 改成 object_setClass(dictionary, _JKDictionaryClass);
- 消除Xcode 5中JosnKit类库的bit masking for introspection of objective-c 警告
http://blog.csdn.net/happyrabbit456/article/details/12906395
#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wdeprecated-objc-pointer-introspection"
BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) &0x1)) ? YES : NO;
#pragma clang diagnostic pop
//BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) & 0x1)) ? YES : NO;