Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrd committed Oct 2, 2022
1 parent 5b4ef0e commit 7812e21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ DDB.config.pretty_json_files = True # Default value

You can specify your own json encoder and decoder if you need to.
The standard library json module is sufficient most of the time.
However, alternatives like orjson might be more performant for your use case
However, alternatives like orjson might be more performant for your use case.
The encoder function should take a dict and return a str or bytes.
The decoder function should take a string and return a dict.
```python
DDB.config.custom_json_encoder = None # Default value
DDB.config.custom_json_decoder = None # Default value
Expand Down

0 comments on commit 7812e21

Please sign in to comment.