We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi there
i tried running below snippet
var xmlJs = require("xml-js") var json = {"a":[{"t":1}]} var options = {compact: true, spaces: 4}; result1 = xmlJs.json2xml(json, options); result2 = xmlJs.xml2json(result1, options); console.log(result1, '\n', result2);
and the result is not identical to sources can you please help me do that ?
The text was updated successfully, but these errors were encountered:
{compact: true} is not reversible. Explained here: https://github.com/nashwaan/xml-js#compact-vs-non-compact
{compact: true}
Sorry, something went wrong.
{ "a": [ { "t": 1 } ] }
may be converted to xml
<?xml version="1.0" encoding="UTF-8"?> <a array="true"> <t number="true">1</t> </a>
https://xmltojson.github.io/json-to-xml.html
No branches or pull requests
hi there
i tried running below snippet
var xmlJs = require("xml-js")
var json = {"a":[{"t":1}]}
var options = {compact: true, spaces: 4};
result1 = xmlJs.json2xml(json, options);
result2 = xmlJs.xml2json(result1, options);
console.log(result1, '\n', result2);
and the result is not identical to sources can you please help me do that ?
The text was updated successfully, but these errors were encountered: