def to_json(self):
    return json.dumps({
        'error': {
            'errors': self.errors(),
            'code': 400,
            'message': self.message(),
        },
    })
JSON string representing the rejected value.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/endpoints/errors.py/RequestRejectionError.to_json