XML PList到JSON转换器并在客户端上处理JSON响应 [英] XML PList to JSON converter and processing JSON response on client
问题描述
是否有任何工具可以将我的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.
推荐答案
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屋!