Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
BeereMgM committed Sep 17, 2023
1 parent 1fef018 commit 7ceb8d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,34 +72,34 @@ deleteFile('hello.txt', 'C:\\Users\\User\\Desktop')

Write to a file:
```python
from ezJson import write_json
from ezWrite import write_json
#Syntax: write_json(filename: str, content: str, path: str, sort_keys: bool)
write_json('hello', '{"hello": "world!"}', sort_keys=False)
```

Read from a json file:
```python
from ezJson import read_data
from ezWrite import read_data
#Syntax: read_data(filename: str, key: str, path: str)
output = read_data('hello', 'hello')
print(output) #>>> world!
```
```python
from ezJson import read_dataset
from ezWrite import read_dataset
#Syntax: read_dataset(filename: str, dataset: str, path: str)
output = read_dataset('hello', 'hello')
print(output) #>>> {"hello": "world!", "how": "are you?"}!
```
```python
from ezJson import read_whole_file
from ezWrite import read_whole_file
#Syntax: read_whole_file(filename: str, path: str)
output = read_whole_file('hello')
print(output) #>>> ["helloworld":{"hello": "world!", "how": "are you?"}]!
```

Delete from json file:
```python
from ezJson import delete_data
from ezWrite import delete_data
#Syntax: delete_data(filename: str, key: str, path: str)
delete_data('hello', 'hello')
```
Expand Down

0 comments on commit 7ceb8d7

Please sign in to comment.