def METHOD_NAME(jsonData, filename, sortKeys=True):
    logger.info('Writing Json File : {0!s:s}'.format(filename))
    dir = os.path.dirname(filename)
    if len(dir) > 0 and not os.path.exists(dir):
        os.makedirs(dir)
    with closing(open(filename, 'w')) as outfile:
        json.dump(jsonData, outfile, ensure_ascii=True, sort_keys=sortKeys, indent=2, separators=(',', ': '))
    logger.debug(jsonData)
    return