Open silversonicaxel opened 4 years ago
It means text
. When serializing it back to XML, it knows the value needs to be an element instead of an attribute.
I guess it is not possible to remove it, right? Just checking, because the tree changes a according to the parameter reversible
set to
false
- rss
- title -> example
or
true
- rss
- title
- $t -> example
is there a way to have this documented maybe in README, including all small changes of the output JSON and make it crystal clear how the result is formatted?
I'm using this parser command
parser.toJson(XMLContent, { reversible: true }
and it is not yet totally clear to me why from this xml:I reach this json:
and not this json:
Can someone explain me why, because documentation is lacking here, or at least, I was not able to understand the reason checking source code here
at line https://github.com/buglabs/node-xml2json/blob/98272646816c5f5747970ee6906e206c1fdd6082/lib/xml2json.js#L128
thanks