From e61fe9b766f092698557726e98910833522e83b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 1 Apr 2018 05:03:12 +0200 Subject: [PATCH] Json --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e4d278..0252ebf 100644 --- a/README.md +++ b/README.md @@ -438,7 +438,7 @@ import json ### Serialization ```python - = json.dumps(, ensure_ascii=False, indent=2) + = json.dumps(, ensure_ascii=True, indent=None) = json.loads() ``` @@ -451,7 +451,7 @@ with open(filename, encoding='utf-8') as file: ### Write to File ```python with open(filename, 'w', encoding='utf-8') as file: - json.dump(, file, ensure_ascii=False, indent=2) + json.dump(, file, ensure_ascii=True, indent=None) ``` SQLite