← Back to team overview

zorba-coders team mailing list archive

[Bug 878508] Re: JSON Module not escaping escape characters

 

Is it possible that this hasn't been fixed yet? I still get unescaped
double quotes when converting a node that contains a string with
quotes...

** Attachment added: "reproduce"
   https://bugs.launchpad.net/zorba/+bug/878508/+attachment/3230168/+files/json.xq

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/878508

Title:
  JSON Module not escaping escape characters

Status in Zorba - The XQuery Processor:
  Fix Released

Bug description:
  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
  \"    <-> &quot;
  \\    <-> \
  \/    <-> /
  \b    <-> &#x8;
  \f    <-> &#xC;
  \n    <-> *actual newline*
  \r    <-> *actual carriage return*
  \t    <-> '	'
  \u$$$$<-> &#x$$$$; or #$$$$$; with the correct hex-decimal conversion
  <     <-> &lt;
  >     <-> &gt;
  &     <-> &amp;
  '     <-> &apos;

  This proposition might create a regresion related to bug #866757.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/878508/+subscriptions


References