Version 1.0 of the C# driver will have support for reading JSON. You
On Dec 29, 8:14 am, Ken Egozi <
egoz...@gmail.com> wrote:
> you'd need to transform the JSON into BSON.
> afaik this functionality is not yet implemented in the csharp driver
> directly.
>
> however you should be able to get around it
> a. use a JSON deserializer to get a Dictionary<string,object> from your
> JSON. Newtonsoft's JSON library should do this in a one liner easily.
> b. create a new BsonDocument;
> c. go through the Dictionary, and add each value (or array, or nested
> dictionary) into the BsonDocument.
>
>
>
> On Wed, Dec 29, 2010 at 11:14 AM, Maddy <
sarvesh....@gmail.com> wrote:
> > Hi All,
>
> > i am new to MONGO DB please tell me how to insert json string to
> > monogoDB. i tried by directly giving the TOBSAONDOCUMENT but its
> > inserting only the object id not able to insert through application.
> > but whereas i can able to insert the same string in Backend in DB.
> > Please help me out
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to
mongod...@googlegroups.com.
> > To unsubscribe from this group, send email to
> Ken Egozi.