Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import json
- >>> s = json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4)
- >>> print s
- {
- "4": 5,
- "6": 7
- }
- <p>
- This is a paragraph, but it's long so
- I'll break to a new line, and indented
- so I know it's within the `p` tag, etc.
- </p>
- email_body = json.dumps(
- health, indent=4, sort_keys=True).replace(' ', ' ').replace('n', '<br>')
Add Comment
Please, Sign In to add comment