简体   繁体   English

如何通过使用网页的URL获取JSON格式的WebService格式

[英]How to get the JSON formated WebService format from using URL of an web page

I have an URL of a login page it goes to the login screen in web. have an URL of a login page it goes to the login screen in web.

Now I need to get the JSON format of the web page using the URL I have. 现在,我需要使用已有的URL获取网页的JSON格式。

And then I can parse it and display in table.. 然后我可以解析它并显示在表格中。

So 1st I need to get the JSON format of the web page using the URL I have. 所以第一, I need to get the JSON format of the web page using the URL I have.

How to create a webservice in json response for page

I want to get the "UserName" key and "PassWord" keys in correct format/case sencitive 我想以正确的格式/区分大小写获取“ UserName”键和“ PassWord”键

Create a Web Service for login page which return JSON response, and than parse that response using SBJSON library. 为登录页面创建一个Web服务,该服务返回JSON响应,然后使用SBJSON库解析该响应。 in either NSDictionary or in NSArray. 在NSDictionary或NSArray中。 And use that array to populate your TableView. 并使用该数组填充TableView。

This link contain all the data, from creating Web Service for login to parse JSON I have used it in my project and its really great. 这个链接包含所有数据,从创建用于登录的Web服务到解析JSON,我在我的项目中使用了它,它的确很棒。

Happy coding. 快乐的编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM