I just started working on MongoDB. From my JavaScript client I am sending a JSON string to ASP.NET WEB API project. Is it possible to use this JSON string directly and save it into MongoDB? I also want to know whether this approach make sense ?
I am thinking of passing the JSON
from client and on the server side read the string
as
[System.Web.Mvc.HttpPost]
public dynamic SaveData([FromBody] string data)
{
System.Web.HttpContext.Current.Request.Form[0]
return null;
}