Using Newtonsoft.Json.12.0.3 for serialization/deserialization, it's taking to 10 to 40 seconds to serialize the object, below is the code snippet, the amount of data is being serialized is a dynamic C# object which can be in MBs.
JsonConvert.SerializeObject(r_Value, Formatting.Indented, new JsonSerializerSettings
{
DateFormatString = Constants.DateTimeFormat.REQUEST_DATE_FORMAT
});
r_Value is a C# object