Skip to content

convert truthy values #80

@csyunyou

Description

@csyunyou
const xml = `
<a>
  <b>true</b>
</a>
`
const json = x2js.xml2js(xml);
console.log('json', json)

will get the result

image

how can the 'true' string in the result can be converted to true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions