Skip to content

Instantly share code, notes, and snippets.

@conrjac
Created August 9, 2017 08:33
Show Gist options
  • Select an option

  • Save conrjac/f09e08bd868a41675d3eb0c1f09efb63 to your computer and use it in GitHub Desktop.

Select an option

Save conrjac/f09e08bd868a41675d3eb0c1f09efb63 to your computer and use it in GitHub Desktop.
Apex Class of SomeJSON.json
public class JsonParser{
public glossary glossary{get;set;}
public class GlossList{
public GlossEntry GlossEntry{get;set;}
}
public class GlossEntry{
public String Abbrev{get;set;}
public String Acronym{get;set;}
public String GlossTerm{get;set;}
public GlossDef GlossDef{get;set;}
public String SortAs{get;set;}
public String GlossSee{get;set;}
public String ID{get;set;}
}
public class GlossDiv{
public GlossList GlossList{get;set;}
public String title{get;set;}
}
public class GlossDef{
public String para{get;set;}
public list GlossSeeAlso{get;set;}
}
public class glossary{
public GlossDiv GlossDiv{get;set;}
public String title{get;set;}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment