[issue13212] json library is decoding/encoding when it should not

Bob Ippolito report at bugs.python.org
Mon May 26 10:00:19 CEST 2014


Bob Ippolito added the comment:

As Chris Rebert mentioned, the JSON standards have adopted this (unsurprising) behavior. Ruby hasn't, and I doubt Crockford has, but I think they're in the minority at this point. JavaScript's own JSON implementation works the same way json/simplejson does.

> JSON.parse(JSON.stringify('yay'))
"yay"

At best, I think it's probably worth a mention in the documentation, but not worth changing any code over.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13212>
_______________________________________


More information about the Python-bugs-list mailing list