c# - What is the easiest way to convert JSON into BSON in .net world -
i started working on mongodb. javascript client sending json string asp.net web api project. possible use json string directly , save mongobd? want know whether approach make sense ?
i thinking of passing json
client , on server side read string
[system.web.mvc.httppost] public dynamic savedata([frombody] string data) { system.web.httpcontext.current.request.form[0] return null; }
try this:
string json = "..."; bsondocument.parse(json);
Comments
Post a Comment