I am using aws lambda's api request template to create and call post methods. I have to send a post body from my code, which should be json serialized.
Here is a way I am doing it now:
**dynamic pObj = new JObject();
pObj.Url = DownloadURL;
pObj.Name = IName;
pObj.ID = I.ID;**
Custom redirect = new Custom()
{
url = new Uri(lambdaEndpoint),
**Body = pObj.ToString(),**
Method = "POST",
Available = true
};
But I read an article where it talks about performance issues with using dynamic keyword.
Is there an alternative approach of doing this that is better in performance? Any help will be appreciated.
Thanks