capybara/virtualenv/lib/python2.7/site-packages/flask/json.py
def _dump_arg_defaults(kwargs):
    """Inject default arguments for dump functions."""
    if current_app:
        kwargs.setdefault('cls', current_app.json_encoder)
        if not current_app.config['JSON_AS_ASCII']:
            kwargs.setdefault('ensure_ascii', False)
        kwargs.setdefault('sort_keys', current_app.config['JSON_SORT_KEYS'])
    else:
        kwargs.setdefault('sort_keys', True)
        kwargs.setdefault('cls', JSONEncoder)
def _dump_arg_defaults(kwargs):
    """Inject default arguments for dump functions."""
    if current_app:
        kwargs.setdefault('cls', current_app.json_encoder)
        if not current_app.config['JSON_AS_ASCII']:
            kwargs.setdefault('ensure_ascii', False)
        kwargs.setdefault('sort_keys', current_app.config['JSON_SORT_KEYS'])
    else:
        kwargs.setdefault('sort_keys', True)
        kwargs.setdefault('cls', JSONEncoder)
def _dump_arg_defaults ( kwargs ) : if current_app : kwargs . setdefault ( 'cls' , current_app . json_encoder ) if not current_app . config [ 'JSON_AS_ASCII' ] : kwargs . setdefault ( 'ensure_ascii' , False ) kwargs . setdefault ( 'sort_keys' , current_app . config [ 'JSON_SORT_KEYS' ] ) else : kwargs . setdefault ( 'sort_keys' , True ) kwargs . setdefault ( 'cls' , JSONEncoder )
Inject default arguments for dump functions.
Inject default arguments for dump functions .