import json


def save_json(input_dict, output_file):
    """save dictionary to file as json. Returns the output file written.

       Parameters
       ==========
       content: the dictionary to save
       output_file: the output_file to save to
    """
    with open(output_file, "w") as filey:
        filey.writelines(json.dumps(input_dict, indent=4))
    return output_file