diff --git a/README.md b/README.md index c2094ca..260fa59 100644 --- a/README.md +++ b/README.md @@ -1730,7 +1730,7 @@ JSON ```python import json = json.dumps(, ensure_ascii=True, indent=None) - = json.loads() + = json.loads() # Raises ValueError on malformed string. ``` ### Read Object from JSON File diff --git a/index.html b/index.html index 19a94e3..8b4660a 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>)
+<object> = json.loads(<str>)    # Raises ValueError on malformed string.
 

Read Object from JSON File

def read_json_file(filename):