Skip to content

Instantly share code, notes, and snippets.

@m3tam3re
Last active July 12, 2019 09:30
Show Gist options
  • Save m3tam3re/e65aeb8d6832e3ae14bd1875f0ea4d5b to your computer and use it in GitHub Desktop.
Save m3tam3re/e65aeb8d6832e3ae14bd1875f0ea4d5b to your computer and use it in GitHub Desktop.
JSON Basics in Python 1
import json ...
my_dict = {'Kopfknoten': {'Knoten1':'mein Knoten 1', 'Knoten2': 'mein Knoten 2', 'Knoten3': 'mein Knoten 3'}}
json_dict = json.dumps(my_dict, indent=4)
print(json_dict)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment