help:python:data_class
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
help:python:data_class [2020/08/11 14:58] – [Data Class in Python] gerhard | help:python:data_class [2020/08/11 15:04] (current) – [Data Class in Python] gerhard | ||
---|---|---|---|
Line 75: | Line 75: | ||
</ | </ | ||
+ | <code python> | ||
+ | |||
+ | import json | ||
+ | |||
+ | json.dumps(dict(data), | ||
+ | |||
+ | </ | ||
+ | |||
+ | The resulting output is: | ||
+ | |||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
help/python/data_class.1597157892.txt.gz · Last modified: 2020/08/11 14:58 by gerhard