It is related to a comment placed at the begining of this file... Briefly, since the value attribute is now a JsonElement, the XML part of the class is not valid anymore, and this is the only way it can be built :)