def _serialize_json ( obj , fp ) : json . dump ( obj , fp , indent = 4 , default = serialize )
write json object to file in python
Serialize obj as a JSON formatted stream to fp
def _serialize_json(obj, fp):
    """ Serialize ``obj`` as a JSON formatted stream to ``fp`` """
    json.dump(obj, fp, indent=4, default=serialize)