objective-cでjsonを利用SBJson (aka json-framework)
http://stig.github.com/json-framework/api/3.0/index.html
https://github.com/stig/json-framework/
1. gitで取得
$ git clone https://github.com/stig/json-framework.git sbjson
2.classesの中のファイルをprojectに追加。
https://github.com/stig/json-framework/blob/master/INSTALL.md
*.h *.m をすべてプロジェクトディレクトリにコピーして追加
3.利用するファイルにヘッダーを追加
#import “SBJson.h”
コンパイルエラー
SBJsonStreamParser.h:105: error: expected a property attribute before ‘unsafe_unretained’
こんな感じ
http://stackoverflow.com/questions/7867983/cant-compiler-json-framework
意味が分からないのであまり良くないとは思うがデフォルト設定を変えてみるが、解決せず。
とりあえずxcodeのバージョンを最新にしてみるか
同様のエラーで、いくつか解決策のようなものもありましたが
結局。 SBJson関連ファイルがいくつか抜けていただけでした。
何も設定しなくても問題なく動きました。
os 1.7.4 xcode 4.3.2