2、TouchJSON 我纠结了很久,要不要介绍这个库了,因为作者在github上声称:"But you should NOT be using this code in your new projects"。
我们从 github 上下载TouchCode/TouchJSON 这个库并将其导入到我们的工程中(仅需将下载下来的文件夹中,Source 目录下的所有文件复制导入到我们的工程)。但是 Source/Experimental目录下提供的功能慎用( Be aware that the code in the Experimental subdirectory of Source is just that and may not have been extensively tested and/or have extra dependencies)。在任何你需要使用json处:#import "CJSONDeserializer.h"