--
You received this message because you are subscribed to the Google Groups "RestSharp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to restsharp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/restsharp/1a816f8c-bdbd-4598-b9ac-a7799cad91e2%40googlegroups.com.
[Obsolete("Use AddXmlBody or AddJsonBody")]
public IRestRequest AddBody(object obj)
{
switch (RequestFormat)
{
case DataFormat.Json:
AddJsonBody(obj);
break;
case DataFormat.Xml:
AddXmlBody(obj);
break;
}
return this;
}
Dear,You have to send converted list into json request don't send list in json request.ThanksDharmesh sharma
On Thu, Sep 12, 2019, 12:47 PM partha ss <part...@gmail.com> wrote:
I have to test a API which accepts List<String> val as body.If I use "request.addBody" everything works fine,But If i use addJsonbody it API throws exception that collection cant be null. S how to add a List<string> to body in request as alternative for addbody since this is deprecated.--Ex: this is the body "[1000]",it doesnt have any keys its a collection.ThanksParth
You received this message because you are subscribed to the Google Groups "RestSharp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest...@googlegroups.com.