create dynamic schema in mongo database

588 views Asked by At

How to assign the dynamic data in mongo db json object

{
"actor" : {"mbox" : "mailto:[email protected]"},
"verb" : {"id" : "http://adlnet.gov/expapi/verbs/answered",
          "display" : {"en-US" : "answered"}},
"object" : {"id" : "http://adlnet.gov/expapi/activities/question"}
};

In my json object the display value comes dynamically how can i assign that.

I pass this json values to the xapi and my local mongo db.

0

There are 0 answers