-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
I'm actually continuing discussion on this bug: #1886
I have to send an arbitrary object via RestSharp. Currently the only possibility for me is to add the body via AddParameter(new JsonParameter("", json)) which seems quite ugly to me. It would be nice to add the bool forceSerialize parameter also to the generic AddJsonBody and not only to the string specialization. That way I could make sure that AddJsonBody serializes the object to a valid JSON for every type.
Reactions are currently unavailable