def save(data, path, enc):
    u""" Save json file in data.

    Dict data dump to json file.
    @param data dict data
    @param path json path
    @param enc  json endoing
    """
    import json
    import codecs
    import os
    if os.access(os.path.dirname(os.path.abspath(path)), os.W_OK):
        with codecs.open(path, 'w', enc) as fo:
            json.dump(data, fo, sort_keys=True, indent=4, ensure_ascii=False)
    else:
        print('Cat not craete file!')
