Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var jsonString = "{"Errors":[{"Number":9,"Status":"BadRequest"}, {"Number":3,"Status":"BadConnection"}]}";
  2.  
  3. public class ExceptionStructure
  4. {
  5. public int Number { get; set; }
  6. public string Status { get; set; }
  7. }
  8.  
  9. var exceptionArr = JsonConvert.DeserializeObject<ExceptionStructure>(jsonString);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement