top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Importing JSON file into Mongodb using C code

+1 vote
233 views

I am new to Mongodb.I jave a C code which generates output in JSON format(json file) and is stored on Ubuntu on my Virtual machine. I need to push the data in JSON file onto Mongodb using C programming.I am able to establish connection to mongodb through C code. Please let me know the Command through which JSON file data can be stored onto mongodb through C programming.

posted Aug 28, 2015 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

I have an aggregation query given below which I need to pass in as a json string to java app to execute it. Is it possible to do that -

{$unwind:$results},{$match:{result.studentid:11}}

I tried using BasicDBObject.parse but it is returning me the unwinded or flattened results and the result is not segregating on the basis of match.

Is there any other way to do it.

+1 vote

I use nodejs with mongoDB and I want to insert JSON data into mongo, I use mongoose but I don't wanna to use model and shéma just push different json with different shéma.

Can someone tell me how I can do it ?

...