You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# JSON* is an extensible json module to serialize all objects!
2
2
3
-
`jsonstar` extends Python's standard JSON encoder and decoder to easily handle your custom types.
3
+
`jsonstar` extends Python's standard JSON encoder to easily handle your custom types.
4
4
5
5
This means you won't have to transform your custom types into dictionaries with primitive types before encoding them to
6
-
JSON. And you won't have to parse back the encoded strings into your custom types after decoding them from JSON.
6
+
JSON.
7
7
8
8
## How to install it?
9
9
@@ -168,6 +168,10 @@ To register a functional encoder, you simply pass the encoder to the chosen regi
168
168
169
169
All functional encoders are called only for objects that do not have a registered typed encoder.
170
170
171
+
## What about JSON decoders?
172
+
173
+
At the moment `jsonstar` do not provide decoders because libraries like `Pydantic` and `Attrs` with `Catter` allows for a more fine-grained control on how data is desserialized.
174
+
171
175
## Contributing
172
176
Pull requests are welcome and must have associated tests.
0 commit comments