dumps indent

indent adds newlines and spaces.

import json
s = json.dumps({'a': 1, 'b': 2}, indent=2)