|Insert from JSON file using C Driver.||Antoine||12/26/11 9:11 AM|
I'm new to MongoDB and still evaluating it. I am writing an
application that uses JSON to store data into text files. I would like
to have this application working with mongoDB. Is they a way to import
the JSON String into a MongoDB collection using the C driver ?. As far
I have seen, I could only insert BSON objects, but no way to fill a
BSON object from JSON String.
Any tricks for that ?
Thanks for help!
|Re: Insert from JSON file using C Driver.||Nat||12/26/11 6:40 PM|
MongoDB C driver doesn't parse JSON. You have to use JSON parser to read JSON string and parse them into BSON representation manually.
|Re: [mongodb-user] Insert from JSON file using C Driver.||Gergely Nagy||12/27/11 2:33 AM|
> I'm new to MongoDB and still evaluating it. I am writing an
It is certainly possible with the official C driver too, as Nat wrote,
The tutorial is available at
Hope that helps.