diff options
Diffstat (limited to 'index.rst')
-rw-r--r-- | index.rst | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -44,7 +44,8 @@ Compact encoding:: Pretty printing:: >>> import simplejson as json - >>> print json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4) + >>> s = json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4) + >>> print '\n'.join([l.rstrip() for l in s.splitlines()]) { "4": 5, "6": 7 |