2013年1月28日月曜日

[iOS]ずっと-JSONValue failed. Error is: Illegal start of token [<]につかまる

なんか恐ろしいくらいにiOSでSBJson使ってるとこのエラーに捕まってどえらいことになってたんで、
メモっときます。(日本語のリファレンスほぼないw)
jsonString = [jsonString stringByReplacingOccurrencesOfString:@"<" withString:@"\""];


もし、Illegal start of token [<] の[]の中が違うものだったらOccurrencesOfString:@"ここをかえればいい"

これでおk。しかし、今度は
-JSONValue failed. Error is: Unexpected end of input
のエラーが。。orz