Serialization for python-requests based on JSON.