Computer Science, asked by acharyvikash412, 1 year ago

How to serialize a Python class?

Answers

Answered by Shubu01
2

\huge{Hey Mate!!!}

☆☞ Here is ur answer ☜☆

✔✔ To serialize an object hierarchy, you simply call the dumps() function.

✔✔ Similarly, to de-serialize a data stream, you call the loads() function.

✔✔ However, if you want more control over serialization and de-serialization, you can create a Pickler

HOPE IT HELPS!

Answered by SnehaG
2

<font color="red">hello!

☆☞ Here is ur answer ☜☆

✔✔ To serialize an object hierarchy, you simply call the dumps() function.

✔✔ Similarly, to de-serialize a data stream, you call the loads() function.

✔✔ However, if you want more control over serialization and de-serialization, you can create a Pickler

HOPE IT HELPS!

Similar questions