Friday, April 18, 2025

How to view a json file in web browser using asp.net webclient

 string json = (new WebClient()).DownloadString("https://raw.githubusercontent.com/aspsnippets/test/master/Customers.json");

 

        //Return the JSON string.

        return Content(json);

No comments:

Post a Comment