Python:JSON
From wiki
Revision as of 11:14, 16 March 2018 by
Hdridder
(
talk
|
contribs
)
(
diff
)
← Older revision
|
Latest revision
(
diff
) |
Newer revision →
(
diff
)
Jump to navigation
Jump to search
import json
Enable json functions. The json module is standard available (no installation needed)
json.dumps(dict, indent=4)
Return the dict nicely structured. Indent each level with 4 spaces.
Can be used on other datatypes too.
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
English
Views
Read
View source
View history
More
Search
Navigation
Main page
Local help
Categories
Recent changes
Random page
Help
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information