Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. public String short_description {get;set;} //Can't read email
  2. public String sys_id {get;set;} //9c573169c611228700193229fff72400
  3. public String incident_state {get;set;} //7
  4. public String urgency {get;set;} //1
  5. public String impact {get;set;} //1
  6. public String active {get;set;} //false
  7.  
  8.  
  9. String deserlize = '{"result":[{"short_description":"Cant read email","sys_id":"9c573169c611228700193229fff72400","incident_state":"7","urgency":"1","impact":"1","active":"false"}]}';
  10. ResponseResult theresult = (ResponseResult)JSON.deserialize(deserlize, ResponseResult.class);
  11.  
  12. System.debug('result' + theresult);
  13.  
  14. public class ResponseResult
  15. {
  16. public ResponseResult()
  17. {
  18. result = new List<Deserialization>();
  19. }
  20.  
  21. public List<Deserialization> result;
  22.  
  23. }
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement