Menu

#75 [wxJSON v1.0] bug in the escaping of control characters

closed-fixed
nobody
wxJSON (16)
5
2009-06-07
2009-05-22
No

Hi,
after analizing the JSON specifications (see http://www.json.org\) it seems that there is another bug in the wxJSONWriter class.
The JSON syntax states that a string value contains "any UNICODE character except " or \ or control character".
Those characters have to be escaped and some control characters are identified by a lower case letter as, for example, TAB si identified by a lower case letter 't'.
All other characters should be identified by the '\uXXXX' sequence where XXXX is a four-digit hexadecimal number.

Actually, wxJSON only checks for identified control characters and does nothing for all others.
Do you agree with my interpretation? All characters lower than decimal 32 (0x20 hex) should be escaped?

Luciano

Discussion

  • Luciano Cattani

    Luciano Cattani - 2009-06-07

    The bug was fixed by releasing version 1.0.2 of the library

     
  • Luciano Cattani

    Luciano Cattani - 2009-06-07
    • status: open --> closed-fixed
     

Log in to post a comment.