diff --git a/README.md b/README.md index ab7fd55..5e83728 100644 --- a/README.md +++ b/README.md @@ -429,6 +429,12 @@ JSON import json ``` +### Serialize/Deserialize +```python + = json.dumps() + = json.loads() +``` + ### Read File ```python with open(filename, encoding='utf-8') as file: @@ -438,7 +444,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) # Or: file.write(json.dumps()) + json.dump(, file) ``` SQLite