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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -