在iPhone上使用哪个JSON库存储数据 [英] Which JSON library to use for data on iPhone

查看:53
本文介绍了在iPhone上使用哪个JSON库存储数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎至少有三个不同的库用于从HTTP请求中提取JSON数据.

There appears to be at least three different libraries for extracting JSON data from an HTTP request.

  • TouchJSON (http://code.google.com/p/touchcode/)
  • BSJSONAdditions (listed at json.org - http://blakeseely.com/blog/archives/2006/03/29/bsjsonadditions-12/
  • json-framework (http://code.google.com/p/json-framework/)

出于速度和最少错误的考虑,我为什么会选择其中之一,还是全部选择相同?

Any reason I would select one of these over the other or all they all about the same, in terms of speed and least bugginess?

我正在处理的数据可能会有一些半复杂的JSON字符串.

The data I'm dealing with will probably have some semi-complex JSON strings.

推荐答案

我建议使用TouchJSON.从性能角度来看,它对我来说效果很好,当时似乎比json-framework设置起来更容易(尽管json-framework也可以工作).我还没有使用BSJSONAdditions.

I'd recommend TouchJSON. It's worked well for me performance-wise and at the time seemed easier to set up than json-framework (although json-framework works just as well). I have not used BSJSONAdditions.

其他相关(或重复)问题: JSon和Objective-c 在iPhone/iPod上保存和编辑JSON

Other related (or duplicate) questions: JSon and objective-c and Saving and Editing JSON on iPhone/iPod

这篇关于在iPhone上使用哪个JSON库存储数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆