code: def _format_args():
          
          if request and request.args.get('prettyprint'):
              return dict(
                  indent=2,
                  separators=(', ', ': '),
              )
          else:
              return dict(
                  indent=None,
                  separators=(',', ':'),
              )
docs: Get JSON dump indentation and separates.