Hello!
It seems that in new version RestSharp 106.6.3.0 ovveriding JSon Serializer in RestRequest.JsonSerializer not working
for example:
var request = new RestRequest
{
Method = Method.POST,
RequestFormat = DataFormat.Json,
JsonSerializer = new JsonCustomSerializer()
};
request.AddJsonBody(obj);
but JsonCustomSerializer.Serialize not calling...
and ContentType of Body not equal to JsonCustomSerializer.ContentType
have to do dirty Hack:
request.AddJsonBody( request.JsonSerializer.Serialize(obj));