1 risposta

Hi David, First and foremost sincerely regret delayed reply.
MyController mc = new MyController();
mc.hidden = "some json";
Not sure of the exact sequence of things in your controller, test class, etc or the exact line that is throwing the error because those details are missing from your question BUT:
You have ONE token and Value defined in your code:vfac.hidden = '[ {\"a0H8A000001XO5QUAW\":\"First\"} ]';Then in your class you grab the first token:while (parser.nextToken() != null) {and the textWhen you get to this line you get the next token but it does not exist so the getText fails because the parser is null (no next token).
parser.nextToken();
sd.Proficiency__c = parser.getText();
Kindly mark this post as solved if the information help's so that it gets removed from the unanswered queue and becomes a proper solution which results in helping others who are really in need of it.
Best Regards,Nagendra.P