How can i deserialize a json string into a list of wrapper in apex ? here is my code :
public class PageLayoutErrorMsg{
public String errorId{get;Set;}
public String errorType{get;Set;}
public String Message{get;Set;}
}
...
LIST<PageLayoutErrorMsg> pageErrors = new LIST<PageLayoutErrorMsg>();
pageErrors = (LIST<PageLayoutErrorMsg>) JSON.deserialize(c.TECH_DisplayedErrorJSON__c,(LIST<PageLayoutErrorMsg>).class);
I am obtaining the following syntax error : unexpected token list Have anyone came across this problem?