On Tue, Sep 13, 2011 at 12:48 AM, Stephan Beal <[email protected]>wrote:
> As a point of trivia: the JSON grammar allows, but does not require, that
>
...
i just stumbled upon the original post (which i had saved in my JSON C
code):
From: Douglas Crockford <[email protected]>
To: Stephan Beal <[email protected]>
Subject: Re: Is escaping of forward slashes required?
It is allowed, not required. It is allowed so that JSON can be
safely
embedded in HTML, which can freak out when seeing strings containing
"</". JSON tolerates "<\/" for this reason.
On 4/8/2011 2:09 PM, Stephan Beal wrote:
> Hello, Jsonites,
>
> i'm a bit confused on a small grammatic detail of JSON:
>
> if i'm reading the grammar chart on http://www.json.org/correctly,
> forward slashes (/) are supposed to be escaped in JSON. However,
the
> JSON class provided with my browsers (Chrome and FF, both of which
i
> assume are fairly standards/RFC-compliant) do not escape such
characters.
>
> Is backslash-escaping forward slashes required? If so, what is the
> justification for it? (i ask because i find it unnecessary and
hard to
> look at.)
--------------
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users