JSON iPhone - 帮助

发布于 2024-11-03 16:02:14 字数 995 浏览 0 评论 0原文

我可以从 Web 服务获取以下 JSON 数据。

问题

  1. 返回的 JSON 格式是否正确?
  2. 我不知道如何在 xcode 上取回这些数据?

有人可以帮我吗?

多谢。

http://192.168.11.6/specicRegion.php?region_ID=011

[{"idReference_no":"R00008","Region_ID":"011","HouseMall_Name_In_Chinese":"A","Rental_Month":"0","Rental_Hour":"0","Rental_Fee_Month":"0.00","Rental_Fee_Hour":"0.00"}, {"idReference_no":"R00009","Region_ID":"011","HouseMall_Name_In_Chinese":"B","Rental_Month":"0","Rental_Hour":"0","Rental_Fee_Month":"0.00","Rental_Fee_Hour":"0.00"}, {"idReference_no":"R00010","Region_ID":"011","HouseMall_Name_In_Chinese":"C","Rental_Month":"0","Rental_Hour":"0","Rental_Fee_Month":"0.00","Rental_Fee_Hour":"0.00"}, {"idReference_no":"R00011","Region_ID":"011","HouseMall_Name_In_Chinese":"D","Rental_Month":"0","Rental_Hour":"0","Rental_Fee_Month":"0.00","Rental_Fee_Hour":"0.00"}]

I can get the following JSON data back from the web services.

Questions:

  1. Is the correct format for JSON that should return?
  2. I have no idea to get back those data on xcode?

Anyone could give me hand?

Thanks a lot.

http://192.168.11.6/specificRegion.php?region_ID=011

[{"idReference_no":"R00008","Region_ID":"011","HouseMall_Name_In_Chinese":"A","Rental_Month":"0","Rental_Hour":"0","Rental_Fee_Month":"0.00","Rental_Fee_Hour":"0.00"}, {"idReference_no":"R00009","Region_ID":"011","HouseMall_Name_In_Chinese":"B","Rental_Month":"0","Rental_Hour":"0","Rental_Fee_Month":"0.00","Rental_Fee_Hour":"0.00"}, {"idReference_no":"R00010","Region_ID":"011","HouseMall_Name_In_Chinese":"C","Rental_Month":"0","Rental_Hour":"0","Rental_Fee_Month":"0.00","Rental_Fee_Hour":"0.00"}, {"idReference_no":"R00011","Region_ID":"011","HouseMall_Name_In_Chinese":"D","Rental_Month":"0","Rental_Hour":"0","Rental_Fee_Month":"0.00","Rental_Fee_Hour":"0.00"}]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

々眼睛长脚气 2024-11-10 16:02:14

对于第一个问题:您始终可以在 jsonlint.com 上检查 json 对象的有效性。如果您是 Chrome 用户,还可以查看 JSONView Chrome 扩展程序。有关在 xcode 项目中使用 JSON 的信息,请参阅 这个问题

For the first question: you can always check for the validity of a json object at jsonlint.com. Also check out the JSONView chrome extension if you're a chrome user. For using JSON in xcode projects, refer this question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文