Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert truthy values #80

Open
csyunyou opened this issue Aug 19, 2024 · 0 comments
Open

convert truthy values #80

csyunyou opened this issue Aug 19, 2024 · 0 comments

Comments

@csyunyou
Copy link

csyunyou commented Aug 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant