New submission from Zorigt Bazarragchaa:
I found a syntax type in your demo example on
https://docs.python.org/2/library/json.html
>>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True)
{"a": 0, "b": 0, "c": 0}
The correct return should be a 'str' type not json. Therefore:
>>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True)
'{"a": 0, "b": 0, "c": 0}'
----------
components: Demos and Tools
messages: 236195
nosy: zorigt
priority: normal
severity: normal
status: open
title: Minor typo
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23480>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com