What is the difference between json and pickle?
File I/O and serialization
Audio flashcard · 0:18Nortren·
What is the difference between json and pickle?
0:18
JSON is a text-based, language-independent format that supports only basic types. It is readable and safe to load from untrusted sources. Pickle is a binary format that can serialize almost any Python object, including custom classes. Pickle is unsafe with untrusted data because loading can execute arbitrary code.
docs.python.org