Public bug reported:

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.

** Affects: zorba
     Importance: Undecided
     Assignee: Sorin Marian Nasoi (sorin.marian.nasoi)
         Status: New

** Changed in: zorba
     Assignee: (unassigned) => Sorin Marian Nasoi (sorin.marian.nasoi)

-- 
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:
  New

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

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to