Browse Source

Json

pull/3/head
Jure Šorn 6 years ago
parent
commit
e61fe9b766
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -438,7 +438,7 @@ import json
### Serialization
```python
<str> = json.dumps(<object>, ensure_ascii=False, indent=2)
<str> = json.dumps(<object>, ensure_ascii=True, indent=None)
<object> = json.loads(<str>)
```
@ -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(<object>, file, ensure_ascii=False, indent=2)
json.dump(<object>, file, ensure_ascii=True, indent=None)
```
SQLite

Loading…
Cancel
Save