The currently published README.md in NPM is not completely right about the deserialization and undeclared text per se:
<employee>
This employee is terrible!
<firstName>John</firstName>
<lastName>Doe</lastName>
<emails>
<email type="work">jdoe@work.com</email>
<email type="personal">john.doe@nobody.com</email>
<emails>
</employee>
shall deserialize to:
{
name: "employee",
data: {
_text: "This employee is terrible!",
firstName: "John",
lastName: "Doe",
emails: [
{
type: "work",
_text: "jdoe@work.com"
},
{
type: "personal",
_text: "john.doe@nobody.com"
}
]
}
}
The currently published README.md in NPM is not completely right about the deserialization and undeclared text per se:
shall deserialize to: