(filename, raw_timestamps=False)
Read a Python object from a gzipped JSON file
Read a Python object from a gzipped JSON file
Read a Python object from a gzipped JSON file
def read_object_from_compressed_json(filename, raw_timestamps=False):
    """ Read a Python object from a gzipped JSON file """
    _register_handlers()
    with gzip.open(filename) as f:
        if raw_timestamps:
            old_arrow = arrow.get
            arrow.get = int
        data = jsonpickle.decode(f.read().decode())
        if raw_timestamps:
            arrow.get = old_arrow
        return data
def read_object_from_compressed_json ( filename , raw_timestamps = False ) : _register_handlers ( ) with gzip . open ( filename ) as f : if raw_timestamps : old_arrow = arrow . get arrow . get = int data = jsonpickle . decode ( f . read ( ) . decode ( ) ) if raw_timestamps : arrow . get = old_arrow return data