@staticmethod<EOL><INDENT>def save(path, json_data):<DEDENT>
try:<EOL><INDENT>loop = asyncio.get_event_loop()<EOL>if loop.is_running():<EOL><INDENT>asyncio.run_coroutine_threadsafe(Persistence._save(path, json_data), loop)<EOL><DEDENT>else:<EOL><INDENT>loop.run_until_complete(Persistence._save(path, json_data))<EOL><DEDENT><DEDENT>except AssertionError:<EOL><INDENT>Persistence._save(path, json_data)<EOL><DEDENT>
Saves json_data in path

:param Path path: Path that json_data will be persisted
:param json_data: Data that will be persisted