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 15:01] – [Data Class in Python] gerhard | help:python:data_class [2020/08/11 15:04] (current) – [Data Class in Python] gerhard | ||
---|---|---|---|
Line 79: | Line 79: | ||
import json | import json | ||
- | In [140]: | + | json.dumps(dict(data),indent=2) |
- | Out[140]: ' | + | |
+ | </ | ||
+ | The resulting output is: | ||
+ | |||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
</ | </ | ||
help/python/data_class.txt · Last modified: 2020/08/11 15:04 by gerhard