Skip to content

Instantly share code, notes, and snippets.

@RaD
Created March 16, 2020 08:04
Show Gist options
  • Save RaD/d82f97a9c3303b32b1fc4b6573967c4e to your computer and use it in GitHub Desktop.
Save RaD/d82f97a9c3303b32b1fc4b6573967c4e to your computer and use it in GitHub Desktop.
Пример, как выгрузить JSON с форматированием и русскими строками
with open('expected_data.json', 'w', encoding='utf8') as json_file:
json.dump(EXPECTED_DATA, json_file, ensure_ascii=False, indent=4, sort_keys=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment