(obj, filename)
Write the Python object to a compressed (gzipped) JSON file

    :param obj: a Python object to serialize
    :param filename: the file to write to
Write the Python object to a compressed (gzipped) JSON file
Write the Python object to a compressed ( gzipped ) JSON file
def write_object_to_compressed_json(obj, filename):
    """ Write the Python object to a compressed (gzipped) JSON file

    :param obj: a Python object to serialize
    :param filename: the file to write to
    """
    _register_handlers()
    with gzip.open(filename, "w") as f:
        f.write(jsonpickle.encode(obj).encode())
def write_object_to_compressed_json ( obj , filename ) : _register_handlers ( ) with gzip . open ( filename , "w" ) as f : f . write ( jsonpickle . encode ( obj ) . encode ( ) )