On 2016-06-23, MRAB <pyt...@mrabarnett.plus.com> wrote: >> On 2016-06-23 21:58, David Shi via Python-list wrote: >>> Can any one tell me? >>> Regards. >>> David >>> >> There's one in the standard library. > Which has always worked fine for me... Which always reminds me:
>>> import json >>> d = {0:1, False:2} >>> d {0: 2} >>> json.dumps(d) '{"0": 2}' >>> WAT :-) -- https://mail.python.org/mailman/listinfo/python-list