とりあえず、github から clone してプロジェクトをビルド build/Release の下の JSON.framework を ~/Library/Frameworks の下にコピー サンプルコード #import <Foundation/Foundation.h> #import <JSON/JSON.h> int main(void) { NSAutoreleasePool *pool = [NSAutoreleasePool new]; SBJsonParser *parser = [SBJsonParser new]; NSDictionary *object = [parser objectWithString:@"{ \"a\" : [1,2,3,4] }" error:nil]; NSLog(@"test: %@", object); NSLog(@"hoge")
2.) Open the dmg, and drag the JSON folder into your project in Xcode. Check "Copy items into destination group's folder (if needed)" when prompted. 4.) Create a SBJSON object to parse JSON into a native Cocoa object. SBJSON will return either a NSDictionary or NSArray depending on the structure of the data. You should know ahead of time the structure of the JSON object your parsing and whether it
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く