Consume (Call) Rest API JSON Web Service in ASP.Net using C# and VB.Net

Alauddin
 
on Feb 05, 2019 01:12 AM
11231 Views

I have been given a URL request with headers key phoneNO and getting response like below:

 
How to show the result in a well format.
{
    "pinresponse": {
        "status": "100",
        "requestId": "994834366197",
        "profiles": [
            {
                "name": "Mohammad Mul Islam",
                "userId": "majhar555@team.com",
                "DOB": "01/03/2000",
                "accNo": "No Account approved"
            },
            {
                "name": "Aar  Islam ",
                "userId": "123@123.com",
                "DOB": "04/01/1994",
                "accNo": "2050213101203"
            },
            {
                "name": "Md. Majharul Islam",
                "userId": "majhar@coreteam.com",
                "DOB": "07/12/1980",
                "accNo": "205021310011"
            }
        ]
    }
}
Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Feb 05, 2019 01:13 AM
on Feb 05, 2019 01:15 AM

Hi Alauddin,

Refer below links.

For reading JSON From url.

Read JSON data from URL using C# and VB.Net in ASP.Net

Converting the json string to Datatable.

How to read JSON string into DataTable and Class object using C# .Net