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

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

问题描述

是否有任何工具可以将我的PLIST转换为JSON。我对JSON格式不太了解。我有一个PLIST,我想要一个等效的JSON文件。



此外,我们如何使用目标C在iOS客户端上处理JSON响应。我已经使用了PList响应所以其他人之前曾询问过将.plist文件转换为json的信息这里



一旦你有了数据json格式,然后你可以使用Apple的 NSJSONSerialization 类,记录这里


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


您可以使用其他库,但有些库其中你会发现在这个问题的答案中。


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

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.

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

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.

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

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