var file = cat('./20-new.json'); # file name
use testdb # db name
var o = JSON.parse(file); # convert string to JSON
db.forms.insert(o) # collection name
var file = cat('./20-new.json'); # file name
var o = JSON.parse(file); # convert string to JSON
o.forEach(function (f) {
f._id = ObjectId().valueOf(); # set _id to value that will work with Meteor
f.Date = ISODate(f.Date); # need convert dates to ISODate
f.dob = ISODate(f.dob);
f.doj = ISODate(f.doj);
db.students.insert(f); # insert on item into collection
}
);