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
All preconf converters now have ``loads`` and ``dumps`` methods, which combine un/structuring and the de/serialization logic from their underlying libraries.
27
+
28
+
.. doctest::
29
+
30
+
>>> from cattr.preconf.json import make_converter
31
+
>>> converter = make_converter()
32
+
33
+
>>> @define
34
+
... classTest:
35
+
... a: int
36
+
>>>
37
+
38
+
>>> converter.dumps(Test(1))
39
+
'{"a": 1}'
40
+
25
41
Particular libraries may have additional constraints documented below.
0 commit comments