def convert_reference_json(reference_json, data_object):
    """
    Converts the reference JSON download from DSS into the DOS message
    and returns the DOS message.
    :param reference_json:
    :param data_object:
    :return:
    """
    # {u'content-type': u'application/octet-stream',
    # u'crc32c': u'e2a2bc04',
    # u'size': 25955827488,
    # u'url': [u'gs://topmed-irc-share/genomes/NWD145710.b38.irc.v1.cram',
    # u's3://nih-nhlbi-datacommons/NWD145710.b38.irc.v1.cram']}
    data_object['size'] = reference_json['size']
    data_object['urls'] = [{'url': x} for x in reference_json['url']]
    data_object['checksums'] = [{'checksum': reference_json['crc32c'], 'type': 'crc32c'}]
    data_object['content_type'] = reference_json['content-type']
    return data_object