Add MalformedContextException for context fromJson() methods.