开发者

SBJSONParser on large integer

I'm using json-framework to parse JSON data in an iPhone project. But there's a large number in the json data, such as 10432159274, it will make NSNumber overflow. In the SBJsonParser.h, the doc says Numbers in JSON will be converted to NSNumber or NSDecimalNumber. How can I use it so the large integer will be parsed as a NSDecimalNumber? Thanks开发者_StackOverflow社区.


I find the solution, updating to the newest version of SBJSON will solve it. The new version using numberWithLongLong to represent integers that has up to 19 digit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜