Re: JSON compatibility

Oren Ben-Kiki <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <1178549015.5545.16.camel@nero>
I don't see how using "\/" instead of "/" helps when embedding JSON in
HTML... It seems to me that placing JSON anywhere that isn't a CDATA
section won't work anyway (even then you'd have to be careful not to end
the section, just like when embedding JavaScript code). What am I
missing?

On Sun, 2007-05-06 at 19:36 -0700, Douglas Crockford wrote:
> I think Oren's interpretation is correct. JSON allows the "\/" so that JSON text 
> can be embedded in HTML. If an application is not embedding data in HTML, then 
> there is no reason to use the "\/" form.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.