Skip to content

Commit 3468b1f

Browse files
authored
Clarify (de)serialization of custom data types in Python
'Exporting' doesn't exist in Python. The use of the official and established term 'class method' clarifies how the methods for (de)serialization have to be defined.
1 parent 58063eb commit 3468b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-functions/durable/durable-functions-serialization-and-persistence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ For full customization of the serialization/deserialization pipeline, consider h
155155

156156
It's recommended to use type annotations to ensure Durable Functions serializes and deserializes your data correctly. While many built-in types are handled automatically, some built-in data types require type annotations to preserve the type during deserialization.
157157

158-
For custom data types, you must define the JSON serialization and deserialization of a data type by exporting a static `to_json` and `from_json` method from your class.
158+
For custom data types, you make JSON serialization and deserialization possible by defining class methods `to_json` and `from_json` on your data type class.
159159

160160
# [Java](#tab/java)
161161

0 commit comments

Comments
 (0)