Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "TotalResults": 30,
- "TotalPages": 2,
- "e:Page": 1,
- "_links": "www.google.com",
- "e:itemlink":[
- {"href":"link1"},
- {"href":"link2"},
- {"href":"link3"}
- ]
- }
- public class linkJson{
- public Integer TotalResults;
- public Integer TotalPages;
- public Integer e:Page; //this through error because of naming convention
- public String _links;
- public cls_e:itemlink[] e:itemlink; //this through error because of naming convention
- //this through error because of naming
- class cls_e:itemlink {
- public String href;
- }
- public static linkJson parse(String json){
- return (linkJson) System.JSON.deserialize(json, linkJson.class);
- }
- }
Add Comment
Please, Sign In to add comment