Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
A JSON payload.

The parameters are added to the payload one at a time and the
complete JSON body is returned as a string by the ``getvalue``
method.

src/b/o/botocore-HEAD/botocore/operation.py   botocore(Download)
from botocore.exceptions import UnknownParameterError
from botocore.paginate import Paginator
from botocore.payload import Payload, XMLPayload, JSONPayload
from botocore import BotoCoreObject, xform_name
 
                                              namespace=namespace)
            else:
                d['payload'] = JSONPayload()
        return d
 

src/b/o/botocore-0.42.0/botocore/operation.py   botocore(Download)
from botocore.exceptions import UnknownParameterError
from botocore.paginate import Paginator
from botocore.payload import Payload, XMLPayload, JSONPayload
from botocore import BotoCoreObject, xform_name
 
                                              namespace=namespace)
            else:
                d['payload'] = JSONPayload()
        return d
 

src/b/o/botocore-HEAD/tests/unit/test_payloads.py   botocore(Download)
    def test_json_payload_scalar(self):
        payload = botocore.payload.JSONPayload()
        p = botocore.parameters.StringParameter(None, name='foo')
        payload.add_param(p, 'value1')
        p = botocore.parameters.StringParameter(None, name='bar')
    def test_json_payload_list(self):
        payload = botocore.payload.JSONPayload()
        p = botocore.parameters.ListParameter(None, name='foo',
                                              members={'type': 'string'})
        value = ['This', 'is', 'a', 'test']