Problem with function xml-to-json (or is it me again)
Replies (3)
Please register to reply
Please register to reply
Added by Mike Banks over 8 years ago
I have a map with the codes for ' and & in some text. When passed though the xml-to-json function the output is escaping the backslash. Marks \u0026 Spencer, you\u0027ve been tangoed JSON output { "properties" : [ { "think" : "Marks \u0026 Spencer, you\u0027ve been tangoed" } ] }
Please register to reply
BTW this is using Saxon-EE 9.7.0.4J Java version 1.8.0_73
Mike
Problem solved. Used replace on output of the xml-to-json. Thanks to Michael Keys.
I thought I replied to this one but my reply isn't here... perhaps it was on another forum.
Backslashed escape sequences in the XML input to xml-to-json are recognised only if the element has the attribute escaped="true".
Please register to reply