class documentation

Model class for JSON.

Serializes and de-serializes between JSON and the Python object representation of HTTP request and response bodies.

Method __init__ Construct a JsonModel.
Method deserialize Perform the actual deserialization from response string to Python object.
Method serialize Perform the actual Python object serialization.
Instance Variable accept Undocumented
Instance Variable alt_param Undocumented
Instance Variable content_type Undocumented
Property no_content_response Undocumented
Instance Variable _data_wrapper Undocumented

Inherited from BaseModel:

Method request Updates outgoing requests with a serialized body.
Method response Convert the response wire format into a Python object.
Method _build_query Builds a query string.
Method _log_request Logs debugging information about the request if requested.
Method _log_response Logs debugging information about the response if requested.
def __init__(self, data_wrapper=False):

Construct a JsonModel.

Parameters
data_wrapperboolean, wrap requests and responses in a data wrapper
def deserialize(self, content):

Perform the actual deserialization from response string to Python object.

Parameters
contentstring, the body of the HTTP response
Returns
The body de-serialized as a Python object.
def serialize(self, body_value):

Perform the actual Python object serialization.

Parameters
body_valueobject, the request body as a Python object.
Returns
string, the body in serialized form.
_data_wrapper =

Undocumented