From 7ac080b09c3e0e7e787a99faddd237f457afa104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 13 Aug 2019 05:33:15 +0200 Subject: [PATCH] JSON --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 260fa59..c2094ca 100644 --- a/README.md +++ b/README.md @@ -1730,7 +1730,7 @@ JSON ```python import json = json.dumps(, ensure_ascii=True, indent=None) - = json.loads() # Raises ValueError on malformed string. + = json.loads() ``` ### Read Object from JSON File diff --git a/index.html b/index.html index 46d0fa2..19a94e3 100644 --- a/index.html +++ b/index.html @@ -1554,7 +1554,7 @@ shutil.rmtree(<path>) # Deletes th

#JSON

import json
 <str>    = json.dumps(<object>, ensure_ascii=True, indent=None)
-<object> = json.loads(<str>)  # Raises ValueError on malformed string.
+<object> = json.loads(<str>)
 

Read Object from JSON File

def read_json_file(filename):