The bug is in this row: https://docs.python.org/3/library/json.html#:~:text=0%7D%2C%20sort_keys%3DTr... The result should be with quote marks: '{"a": 0, "b": 0, "c": 0}'
Hey Rami, why do you think the result should be with quote marks? If I execute this in my interpreter I get the following output (without quotation marks): € python3.10 -q
import json print(json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True)) {"a": 0, "b": 0, "c": 0}
On Thu, Apr 7, 2022, at 3:56 PM, Rami Mahskouk wrote:
The bug is in this row: https://docs.python.org/3/library/json.html#:~:text=0%7D%2C%20sort_keys%3DTr...
The result should be with quote marks: '{"a": 0, "b": 0, "c": 0}' _______________________________________________ docs mailing list -- docs@python.org To unsubscribe send an email to docs-leave@python.org https://mail.python.org/mailman3/lists/docs.python.org/ Member address: skelley@tty.cat
participants (2)
-
Rami Mahskouk
-
Simon de Vlieger