3 ms·
"lightweight data interchange format" is not the same as "serialization formats". For one, serialization usually handles binary data as well. And types, lots o
by betenoire 10y ago
"lightweight data interchange format" is not the same as "serialization formats".
For one, serialization usually handles binary data as well. And types, lots of types. Serialization includes class definitions, etc, which are used to create a (in this case) python object. JSON is literally javascript object notation, and has nothing to do with pickling python.
- kazinator 10y agoYes it is. Serialization doesn't have to handle a particular type system in its entirety to be serialization. A serialization scheme can dictate its own type system; which can be smaller than that of the programming languages which support that serialization scheme. JSON has a simple type system; it serializes that system. (Might you be confusing serialization for other concepts like object store databases, or image saving?)