Guest User

Untitled

a guest
Apr 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. >>> import json
  2. >>> s = json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4)
  3. >>> print s
  4. {
  5. "4": 5,
  6. "6": 7
  7. }
  8.  
  9. <p>
  10. This is a paragraph, but it's long so
  11. I'll break to a new line, and indented
  12. so I know it's within the `p` tag, etc.
  13. </p>
  14.  
  15. email_body = json.dumps(
  16. health, indent=4, sort_keys=True).replace(' ', '&nbsp;').replace('n', '<br>')
Add Comment
Please, Sign In to add comment