Added language forbidding backslash escaping of forward slashes.
authorManu Sporny <msporny@digitalbazaar.com>
Sun, 11 Sep 2011 17:20:05 -0400
changeset 202 dae408dbba73
parent 201 e6d2d7f7cdc3
child 203 99617df9a891
Added language forbidding backslash escaping of forward slashes.
Closes #22.
spec/latest/index.html
--- a/spec/latest/index.html	Sun Sep 11 17:07:27 2011 -0400
+++ b/spec/latest/index.html	Sun Sep 11 17:20:05 2011 -0400
@@ -3454,6 +3454,16 @@
 not use values that are going to undergo automatic conversion. This is due
 to the lossy nature of <strong>xsd:double</strong> values.</p>
 
+<p class="note">Some JSON serializers, such as PHP's native implementation,
+backslash-escapes the forward slash character. For example, the value
+<code>http://example.com/</code> would be serialized as 
+<code>http:\/\/example.com\/</code> in some
+versions of PHP. This is problematic when generating a byte
+stream for processes such as normalization. There is no need to 
+backslash-escape forward-slashes in JSON-LD. To aid interoperability between
+JSON-LD processors, a JSON-LD serializer MUST NOT backslash-escape 
+forward slashes.</p>
+
 <p class="issue">Round-tripping data can be problematic if we mix and
 match @coerce rules with JSON-native datatypes, like integers. Consider the
 following code example:</p>