Guest User

Untitled

a guest
Nov 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. {
  2. "TotalResults": 30,
  3. "TotalPages": 2,
  4. "e:Page": 1,
  5. "_links": "www.google.com",
  6. "e:itemlink":[
  7. {"href":"link1"},
  8. {"href":"link2"},
  9. {"href":"link3"}
  10. ]
  11. }
  12.  
  13. public class linkJson{
  14. public Integer TotalResults;
  15. public Integer TotalPages;
  16. public Integer e:Page; //this through error because of naming convention
  17. public String _links;
  18. public cls_e:itemlink[] e:itemlink; //this through error because of naming convention
  19. //this through error because of naming
  20. class cls_e:itemlink {
  21. public String href;
  22. }
  23. public static linkJson parse(String json){
  24. return (linkJson) System.JSON.deserialize(json, linkJson.class);
  25. }
  26. }
Add Comment
Please, Sign In to add comment