Possible Duplicate:
JSON: why are forward slashes escaped?
json.org states, that forward slashes (aka solidus, /
) can be escaped:
"\/"
However, unescaped slashes are valid, too:
"/"
What's the rational behind this? Does it come from the Javascript roots? (I.e., "</script>"
is a problem in browser-based Javascript, see Douglas Crockford's comment) Or has it any other reason?
</script>
tag. You can see Douglas Crockford, the originator of the JSON specifications, present the rationale for it here. – Oliver Sieweke Nov 9 '20 at 14:08