Loading ...
Sorry, an error occurred while loading the content.

Slash

Expand Messages
  • Douglas Crockford
    JSON allows, but does not require escaping of the / character. Generally, it is best to not escape the slash. The JSON strings / and / must produce
    Message 1 of 1 , Oct 28, 2008
    • 0 Attachment
      JSON allows, but does not require escaping of the / character.
      Generally, it is best to not escape the slash. The JSON strings "/"
      and "\/" must produce exactly the same result.

      JSON tolerates \/ for the benefit in HTML. In HTML, </ is not allowed
      in string literals, so JSON permits <\/.
    Your message has been successfully submitted and would be delivered to recipients shortly.