0

Possible Duplicate:
JSON: why are forward slashes escaped?

Using org.json.JSONWriter in Java, if I include XML values, the closing tags show up escaped. For example:

<version>2.0<\/version>
Community
  • 1
  • 1
mvd
  • 2,596
  • 2
  • 33
  • 47
  • 1
    What is your question? What is your input/code/desired output? What are you trying to achieve? – Joachim Sauer Jan 17 '13 at 15:41
  • 1
    What makes you think it's *not* safe ? i.e. what happens if you read that JSON back ? Do you get the XML returned intact (clue: yes) – Brian Agnew Jan 17 '13 at 15:42
  • The sample I posted shows it's not "safe" ie, incorrect. Every closing tag has a \ character in it. – mvd Jan 17 '13 at 16:08

0 Answers0