def get(key, default, env, unparse):
    """Returns the raw value for a settings key.

    If result is a dict, list or tuple it is printed as a valid json string.
    """
    if env:
        env = env.strip()
    if key:
        key = key.strip()

    if env:
        settings.setenv(env)

    if default is not empty:
        result = settings.get(key, default)
    else:
        try:
            result = settings[key]
        except KeyError:
            click.echo("Key not found", nl=False, err=True)
            sys.exit(1)

    if unparse:
        result = unparse_conf_data(result)

    if isinstance(result, (dict, list, tuple)):
        result = json.dumps(prepare_json(result), sort_keys=True, default=repr)

    click.echo(result, nl=False)
Returns the raw value for a settings key.

    If result is a dict, list or tuple it is printed as a valid json string.
    
dynaconf/cli.py