XML PList到JSON转换器并在客户端上处理JSON响应 [英] XML PList to JSON converter and processing JSON response on client

查看:79
本文介绍了XML PList到JSON转换器并在客户端上处理JSON响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何工具可以将我的XML PLIST转换为JSON.我对JSON格式没有太多的想法.我有一个PLIST,我想要一个等效的JSON文件.

Is there any tool which can convert my XML PLIST into JSON. I do not have much idea on JSON formatting. I have a PLIST for which I want an equivalent JSON file.

此外,我们如何使用目标C在iOS客户端上处理JSON响应.到目前为止,我已经处理过PList响应.

Also, how do we process JSON response on iOS client using objective C. I have worked with PList response so far.

推荐答案

其他人以前曾询问过将.plist文件转换为json

Others have previously asked about converting .plist files to json here.

数据以json格式存储后,就可以使用Apple的NSJSONSerialization类,该类记录在

Once you have your data in a json format, you can then use Apple's NSJSONSerialization class, documented here:

您使用NSJSONSerialization类将JSON转换为Foundation 对象并将Foundation对象转换为JSON.

You use the NSJSONSerialization class to convert JSON to Foundation objects and convert Foundation objects to JSON.

不过,您还可以使用其他库,您可以在

There are other libraries you can use, though, some of which you will find in the answers to this question.

这篇关于XML PList到JSON转换器并在客户端上处理JSON响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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