开发者

JSON iPhone - Help

开发者 https://www.devze.com 2023-03-01 01:41 出处:网络
I can get the following JSON data back from the web services. Questions: 开发者_如何学编程 Is the correct format for JSON that should return?

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"}]


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消