esquema de mogoose para agregar JSON como propiedad
// Initial requires
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
// A generic answer sub-schema
var answerSchema = new Schema({
answer: String,
correct: Boolean
});
// A generic Question schema
var questionSchema = new Schema({
text: String,
answers: [answerSchema]
});
exports.Question = mongoose.model( 'Question', questionSchema );
Repulsive Rook