<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save(path, json_data):
 """ Saves json_data in path :param Path path: Path that json_data will be persisted :param json_data: Data that will be persisted """

        try:
            loop = asyncio.get_event_loop()
            if loop.is_running():
                asyncio.run_coroutine_threadsafe(Persistence._save(path, json_data), loop)
            else:
                loop.run_until_complete(Persistence._save(path, json_data))
        except AssertionError:
            Persistence._save(path, json_data)