MCPcopy Create free account
hub / github.com/aws/aws-cli / _serialize_body_params

Method _serialize_body_params

awscli/botocore/serialize.py:1059–1062  ·  view source on GitHub ↗
(self, params, shape)

Source from the content-addressed store, hash-verified

1057 serialized['headers']['Content-Type'] = 'application/json'
1058
1059 def _serialize_body_params(self, params, shape):
1060 serialized_body = self.MAP_TYPE()
1061 self._serialize(serialized_body, params, shape)
1062 return json.dumps(serialized_body).encode(self.DEFAULT_ENCODING)
1063
1064
1065class RestXMLSerializer(BaseRestSerializer):

Callers

nothing calls this directly

Calls 2

_serializeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected