def _write_json(file, contents):
    with open(file, 'w') as f:
        return json.dump(contents, f, indent=2, sort_keys=True)
Write a dict to a JSON file.
dataset/ETHPy150Open rossant/ipymd/ipymd/utils/utils.py/_write_json