Hi all!
I have a few XML documents, whose content I would also like to provide in JSON. The XML files contain many strings encoded within comments, such as <!--incipit—>, and I would like to transfer such string contents unchanged into JSON. However, I am having a hard time to deal with “-” ( using data(<!---—>) ), which is rendered as “&45;” , and “>”, which is translated into “>”: I tried a lot, but nothing seems to work: is there a way to keep “-” and “>” unchanged while serializing to JSON?
Another issue I am experiencing is that, after JSON serialization, the order of the key-values in a map does not follow that specified in my code: I know that the order is not computationally meaningful, but for reading purposes it would make a huge difference in my case, because one key contains a long array of objects and therefore I would like the keys with shorter contents to be serialized before.
Ciao,
Giuseppe