Project

Profile

Help

Problem with function xml-to-json (or is it me again)

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" } ] }


Replies (3)

Please register to reply

RE: Problem with function xml-to-json (or is it me again) - Added by Mike Banks over 8 years ago

BTW this is using Saxon-EE 9.7.0.4J Java version 1.8.0_73

Mike

RE: Problem with function xml-to-json (or is it me again) - Added by Mike Banks over 8 years ago

Problem solved. Used replace on output of the xml-to-json. Thanks to Michael Keys.

RE: Problem with function xml-to-json (or is it me again) - Added by Michael Kay over 8 years ago

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".

    (1-3/3)

    Please register to reply