Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string json = @"{
- 'href': '/account/login.aspx',
- 'target': '_blank'
- }";
- Dictionary<string, string> htmlAttributes = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
- Console.WriteLine(htmlAttributes["href"]);
- // /account/login.aspx
- Console.WriteLine(htmlAttributes["target"]);
- // _blank
Add Comment
Please, Sign In to add comment