Tutorial by Examples

JSON is a cross language, widely used method to serialize data Supported data types : int, float, boolean, string, list and dict. See -> JSON Wiki for more Here is an example demonstrating the basic usage of JSON :- import json families = (['John'], ['Mark', 'David', {'name': 'Avraham'}]) ...
Here is an example demonstrating the basic usage of pickle:- # Importing pickle try: import cPickle as pickle # Python 2 except ImportError: import pickle # Python 3 # Creating Pythonic object: class Family(object): def __init__(self, names): self.sons = names ...

Page 1 of 1