{ "url": "http://google.com", "Viewmodel": { "recipientId": 0, "firstName": null, "lastName": null } }
//get the Json filepath string file = Server.MapPath("~/App_Data/output.json"); //deserialize JSON from file string stringobj = System.IO.File.ReadAllText(file); JavaScriptSerializer ser = new JavaScriptSerializer(); Object o= ser.Deserialize<Object>(stringobj); foreach (var item in o) { // print the property but how ? // print the value but how? }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)