Comment 5 for bug 878508

Revision history for this message
Paul J. Lucas (paul-lucas) wrote : Re: JSON Module not escaping escape characters

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., &lt; 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.)