Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to deserialize a json string to a object in asp.net 5?

$
0
0
BookModel Book = new BookModel();
string BookJsonString = "{"id":152,"name":"Book1","Author":"Mike"}"; JavaScriptSerializer Serializer = new JavaScriptSerializer(); Book = Serializer.Deserialize<BookModel>(BookJsonString);

How to migration this code to asp.net 5 ?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>