After some investigation, I don't think there's anything I can do about
this. When *I* get a string's value via store::Item::getStringValue(),
it is in its canonical representation, i.e., < is actually a literal
<, etc. There's some other XML serializer "downstream" from me that
converts the illegal characters in XML to their &'d counterparts. If
it's serializing JSON, clearly, it shouldn't do that.
Note that characters like <, >, &, are actually *legal* in JSON, so
those shouldn't be converted at all. (In fact, it's illegal to \ them.)
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
JSON Module not escaping escape characters
Status in Zorba - The XQuery Processor:
The module doesn't convert escaped characters as you would expect. You
instead get a string containing the string with it's unescaped value. A
conversion needs to be implemented, something such as:
JSON <-> XML
\" <-> "
\\ <-> \
\/ <-> /
\n <-> *actual newline*
\r <-> *actual carriage return*
\t <-> ' '
\u$$$$<-> &#x$$$$; or #$$$$$; with the correct hex-decimal conversion
< <-> <
> <-> >
& <-> &
' <-> '
This proposition might create a regresion related to bug #866757.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~zorba-coders
Post to : email@example.com
Unsubscribe : https://launchpad.net/~zorba-coders
More help : https://help.launchpad.net/ListHelp