Serhiy Storchaka added the comment:

Embedding JSON inside <script> tag doesn't differ from embedding any string in 
some format (i.e. JSON in Python string, Python sources in HTML, or XML in a 
shell script). We just escape characters which have special meaning.

I propose close this issue because embedding JSON (as any other generated code) 
in inline JavaScript can be done very easily with a sequence of string 
replaces. This has no relations to the json module.

----------
status: open -> pending

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18290>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to