3 ms·
$ python -c 'import json,sys;print(json.dumps(json.loads(sys.argv[1])))' '{"a": "b"}' {"a": "b"} Maybe it's been fixed? That's Python 3.8.10. What versi
by tyingq 5y ago
$ python -c 'import json,sys;print(json.dumps(json.loads(sys.argv[1])))' '{"a": "b"}'
{"a": "b"}
Maybe it's been fixed? That's Python 3.8.10. What version is it broken in?
- lcrz 5y agoPython 2.7.16 (default, May 8 2021, 11:48:02) >>> import json >>> json.loads('{"a" : "b" }') {u'a': u'b'}
- dec0dedab0de 5y agoIn case either of you check your threads page, it was just a stupid mistake on my part. See my edit. Thank you for correcting me.