Skip to content

Revise and simplify README.md content #43

@formix

Description

@formix

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"
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions