-
Notifications
You must be signed in to change notification settings - Fork 179
Open
Description
I'm using json2xml
var convert = require('xml-js');
var json = require('fs').readFileSync('test.json', 'utf8');
var options = {compact: true, ignoreComment: true, spaces: 4};
var result = convert.json2xml(json, options);
console.log(result);
Here is test.json file
{
"value": [
{
"_text": "\"test < \""
}
]
}
Result:
<value>"test < "</value>
Expect:
<value>"test < "</value>
Is there any way to ignore auto convert < to <
Metadata
Metadata
Assignees
Labels
No labels