Initialize a model registry with a list of model definitions that are
    stored in a given file in Json format.

    Parameters
    ----------
    mongo : scodata.MongoDBFactory
        Connector for MongoDB
    filename : string
        Path to file containing model definitions
    clear_collection : boolean
        If true, collection will be dropped before models are created

def init_registry_from_json(mongo, filename, clear_collection=False):
    """Initialize a model registry with a list of model definitions that are
    stored in a given file in Json format.

    Parameters
    ----------
    mongo : scodata.MongoDBFactory
        Connector for MongoDB
    filename : string
        Path to file containing model definitions
    clear_collection : boolean
        If true, collection will be dropped before models are created
    """
    # Read model definition file (JSON)
    with open(filename, 'r') as f:
        models = json.load(f)
    init_registry(mongo, models, clear_collection)